wxXMLParser Class Reference

An XML parser base class. More...

#include <xmlutils/xmlparser.h>

Inheritance diagram for wxXMLParser:

ebEpubParser

List of all members.

Public Member Functions

 wxXMLParser ()
void Init ()
bool HasParam (wxXmlNode *node, const wxString &param)
 Check to see if a parameter exists.
wxXmlNode * GetParamNode (wxXmlNode *node, const wxString &param)
 Finds the node or returns NULL.
wxString GetNodeContent (wxXmlNode *node)
 Gets node content from wxXML_ENTITY_NODE.
wxString GetParamValue (wxXmlNode *node, const wxString &param)
 Finds the parameter value or returns the empty string.
wxString GetText (wxXmlNode *node, const wxString &param)
wxArrayString FindValues (wxXmlNode *node, const wxString &tag)
 Find all strings with the given tag.


Detailed Description

An XML parser base class.

Constructor & Destructor Documentation

wxXMLParser::wxXMLParser (  )  [inline]


Member Function Documentation

wxArrayString wxXMLParser::FindValues ( wxXmlNode *  node,
const wxString &  tag 
)

Find all strings with the given tag.

wxString wxXMLParser::GetNodeContent ( wxXmlNode *  node  ) 

Gets node content from wxXML_ENTITY_NODE.

wxXmlNode * wxXMLParser::GetParamNode ( wxXmlNode *  node,
const wxString &  param 
)

Finds the node or returns NULL.

wxString wxXMLParser::GetParamValue ( wxXmlNode *  node,
const wxString &  param 
)

Finds the parameter value or returns the empty string.

wxString wxXMLParser::GetText ( wxXmlNode *  node,
const wxString &  param 
)

  • replaces
    , , by respective chars (according to C syntax)
  • replaces _ by & and __ by _ (needed for _File => &File because of XML)
  • calls wxGetTranslations (unless disabled in wxXmlResource)

bool wxXMLParser::HasParam ( wxXmlNode *  node,
const wxString &  param 
)

Check to see if a parameter exists.

void wxXMLParser::Init (  )  [inline]

Reimplemented in ebEpubParser.


The documentation for this class was generated from the following files:

Generated on Wed May 6 19:22:10 2009 for AxTk by  doxygen 1.5.8