HDK
|
#include <UT_XMLSaxParser.h>
Public Member Functions | |
UT_XMLSaxParser () | |
Standard constructor. More... | |
~UT_XMLSaxParser () override | |
Standard destructor. More... | |
Public Member Functions inherited from UT_XMLParser | |
UT_XMLParser () | |
Standard constructor. More... | |
virtual | ~UT_XMLParser () |
Standard destructor. More... | |
void | setSubstituteEntities (bool substitute) |
bool | parseMemory (const char *contents, int size=-1) |
bool | parseFile (const char *filename) |
const char * | getError () const |
Protected Types | |
typedef std::pair< UT_String, UT_String > | UT_XMLAttribute |
An XML element attribute as defined by a name and a value. More... | |
typedef UT_Array < UT_XMLAttribute * > | UT_XMLAttributeList |
A list of XML element attributes. More... | |
Protected Member Functions | |
virtual void | onStartDocument () |
virtual void | onEndDocument () |
virtual void | onStartElement (const UT_String &name, const UT_XMLAttributeList &attribs) |
virtual void | onEndElement (const UT_String &name) |
virtual void | onCharacters (const UT_String &characters) |
virtual void | onCDATABlock (const UT_String &characters) |
virtual void | onComment (const UT_String &text) |
virtual void | onWarning (const UT_String &text) |
virtual void | onError (const UT_String &text) |
virtual void | onFatalError (const UT_String &text) |
bool | parseContextSubclass () override |
Protected Member Functions inherited from UT_XMLParser | |
bool | parseContext () |
xmlParserCtxtPtr | getContext () const |
Return the current parsing context. More... | |
void | setError (const char *error) |
Sets the error message for the current parsing run. More... | |
Static Protected Member Functions | |
static bool | getAttribute (const UT_XMLAttributeList &attribs, const char *name, UT_String &value) |
Utility method for getting the value of an attribute. More... | |
Friends | |
class | utSaxParserCallback |
Definition at line 29 of file UT_XMLSaxParser.h.
|
protected |
An XML element attribute as defined by a name and a value.
Definition at line 41 of file UT_XMLSaxParser.h.
|
protected |
A list of XML element attributes.
Definition at line 44 of file UT_XMLSaxParser.h.
UT_XMLSaxParser::UT_XMLSaxParser | ( | ) |
Standard constructor.
|
override |
Standard destructor.
|
staticprotected |
Utility method for getting the value of an attribute.
|
protectedvirtual |
|
protectedvirtual |
Callback methods that are called at various times of the parse.
|
protectedvirtual |
|
overrideprotectedvirtual |
Parse XML using the current context. Return true on a successful parse. Return false otherwise.
Implements UT_XMLParser.
|
friend |
We need to give the callback helper class access to the parser's callback functions (i.e. onStartElement).
Definition at line 74 of file UT_XMLSaxParser.h.