libexpatpp 0.1.8
|
definition of the parser delegate interface. More...
#include <delegate.hpp>
Public Member Functions | |
virtual void | onStartElement (const XML_Char *fullname, const XML_Char **atts)=0 |
this callback is called after parsing the starting tag of an xml element. | |
virtual void | onEndElement (const XML_Char *fullname)=0 |
callback is called after parsing the end tag of an xml element | |
virtual void | onCharacterData (const char *pBuf, int len)=0 |
callback is called with parsed character data inside of an xml element. | |
virtual void | onComment (const XML_Char *data)=0 |
callback called on parsed xml comment | |
virtual void | onStartCdataSection ()=0 |
callback will be called if the begin of a PCDATA section was parsed | |
virtual void | onEndCdataSection ()=0 |
callback will be called after the end of a PCDATA section was parsed | |
virtual void | onXmlDecl (const XML_Char *version, const XML_Char *encoding, int standalone)=0 |
delegate function is called after the (starting) xml declaration is parsed. | |
virtual void | onParseError (size_t line, size_t column, size_t pos, Error error)=0 |
function is called if on parsing a parse error is detected | |
virtual void | onProcessingInstruction (const XML_Char *target, const XML_Char *data)=0 |
delegate function is called if an xml processing instruction was found | |
virtual void | onStartNamespace (const XML_Char *prefix, const XML_Char *uri)=0 |
delegate function is called when an xml namespace is started/ opened | |
virtual void | onEndNamespace (const XML_Char *prefix)=0 |
delegate function is called when an xml namespace is ended | |
virtual void | onStartDoctypeDecl (const XML_Char *doctypeName, const XML_Char *sysid, const XML_Char *pubid, int has_internal_subset)=0 |
delegate function is called when a DTD (document type definition) xml entry is parsed. | |
virtual void | onEndDoctypeDecl ()=0 |
delegate function is called if end of DTD is parsed from xml data | |
virtual void | onElementDecl (const XML_Char *name, XML_Content *model)=0 |
delegate function is called if an DTD element declaration is parsed from xml data. | |
virtual void | onAttlistDecl (const XML_Char *elname, const XML_Char *attname, const XML_Char *att_type, const XML_Char *dflt, bool isrequired)=0 |
delegate function is called if an element attribute list declaration is parsed. | |
virtual void | onEntityDecl (const XML_Char *entityName, int is_parameter_entity, const XML_Char *value, int value_length, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId, const XML_Char *notationName)=0 |
delegate function is called if an entity declaration was parsed | |
virtual void | onNotationDecl (const XML_Char *notationName, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId)=0 |
delegate function is called if an notation declaration was parsed | |
virtual void | onUnparsedEntityDecl (const XML_Char *entityName, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId, const XML_Char *notationName)=0 |
virtual void | onSkippedEntity (const XML_Char *entityName, int is_parameter_entity)=0 |
definition of the parser delegate interface.
the parser delegate handles the different parser events
|
pure virtual |
delegate function is called if an element attribute list declaration is parsed.
elname | name of the declared element this attribute list refers to |
attname | name of the declared attribute |
att_type | type of the declared attribute |
dflt | |
isrequired | true if attribute is required, false if optional |
Implemented in xmlpp::abstract_delegate.
|
pure virtual |
callback is called with parsed character data inside of an xml element.
it may called more than once if the text inside of an xml element does not fit into the parse buffer.
pBuf | pointer to the text data |
len | len of the returned string |
Implemented in xmlpp::abstract_delegate, and xmlpp::StatefulDelegate.
|
pure virtual |
callback called on parsed xml comment
data | contains the content of the comment |
Implemented in xmlpp::abstract_delegate.
|
pure virtual |
delegate function is called if an DTD element declaration is parsed from xml data.
for details of the model see expat library documentation
name | name of the declared element |
model | the content model for the declared element |
Implemented in xmlpp::abstract_delegate.
|
pure virtual |
callback will be called after the end of a PCDATA section was parsed
Implemented in xmlpp::abstract_delegate.
|
pure virtual |
delegate function is called if end of DTD is parsed from xml data
Implemented in xmlpp::abstract_delegate.
|
pure virtual |
callback is called after parsing the end tag of an xml element
fullname | name of the ended sml element |
Implemented in xmlpp::abstract_delegate, and xmlpp::StatefulDelegate.
|
pure virtual |
delegate function is called when an xml namespace is ended
prefix | prefix of the xml namespace |
Implemented in xmlpp::abstract_delegate.
|
pure virtual |
delegate function is called if an entity declaration was parsed
entityName | name of the declared entity |
is_parameter_entity | |
value | |
value_length | |
base | |
systemId | |
publicId | |
notationName |
Implemented in xmlpp::abstract_delegate.
|
pure virtual |
delegate function is called if an notation declaration was parsed
notationName | name of the declared notation |
base | |
systemId | |
publicId |
Implemented in xmlpp::abstract_delegate.
|
pure virtual |
function is called if on parsing a parse error is detected
line | line in xml file or string where the error is detected |
column | column in xml file or string where the error is detected |
pos | position of detected parse error in bytes from begin of parsing |
error | error code for type of parse error (wrapper for XML_Error from expat |
Implemented in xmlpp::abstract_delegate.
|
pure virtual |
delegate function is called if an xml processing instruction was found
target | TODO |
data | TODO |
Implemented in xmlpp::abstract_delegate.
|
pure virtual |
callback will be called if the begin of a PCDATA section was parsed
Implemented in xmlpp::abstract_delegate.
|
pure virtual |
delegate function is called when a DTD (document type definition) xml entry is parsed.
doctypeName | name of the document type definition |
sysid | system Id |
pubid | public id |
has_internal_subset | dtd has an internal subset |
Implemented in xmlpp::abstract_delegate.
|
pure virtual |
this callback is called after parsing the starting tag of an xml element.
fullname | name of the started xml element |
atts | list of elements attributes as list of key and value strings |
Implemented in xmlpp::abstract_delegate, and xmlpp::StatefulDelegate.
|
pure virtual |
delegate function is called when an xml namespace is started/ opened
prefix | prefix of the xml namespace |
uri | uri of namespace |
Implemented in xmlpp::abstract_delegate.
|
pure virtual |
delegate function is called after the (starting) xml declaration is parsed.
version | the xml version |
encoding | the encoding of the following xml content |
standalone | 1 for standalone xml file |
Implemented in xmlpp::abstract_delegate.