|
MoSync 3.2.1
|
Base class for SAX parser callback interfaces. More...
#include <MTXml/MTSax.h>
Public Member Functions | |
| virtual void | mtxEncoding (const char *value)=0 |
| virtual void | mtxStartElement (const Tchar *name, const Tchar **attributes)=0 |
| virtual void | mtxEndElement (const Tchar *name)=0 |
| virtual void | mtxCharacters (const Tchar *data, int length)=0 |
| virtual void | mtxParseError (int offset)=0 |
Base class for SAX parser callback interfaces.
Inherit from this to receive callbacks from a SaxContext. This is analogous to filling in the function pointers of a MTXSaxContext object.
| virtual void Mtx::SaxListenerT< Tchar >::mtxEncoding | ( | const char * | value | ) | [pure virtual] |
If the "encoding" attribute is present in the "?xml" tag, this function is called.
The default encoding is UTF-8.
| context | The current context. |
| value | The encoding name specified in the document. |
| virtual void Mtx::SaxListenerT< Tchar >::mtxStartElement | ( | const Tchar * | name, |
| const Tchar ** | attributes | ||
| ) | [pure virtual] |
Called when a start-tag or an empty element is parsed.
| context | The current context. |
| name | The name of the element. |
| attributes | The attributes in this element, specified as a NULL-terminated name/value pointer pair array. |
| virtual void Mtx::SaxListenerT< Tchar >::mtxEndElement | ( | const Tchar * | name | ) | [pure virtual] |
Called when an end-element or the end of an empty element is parsed.
| context | The current context. |
| name | The name of the element. |
| virtual void Mtx::SaxListenerT< Tchar >::mtxCharacters | ( | const Tchar * | data, |
| int | length | ||
| ) | [pure virtual] |
Called when character data is parsed.
May be called more than once per data section, so don't expect your data to be delivered in one piece.
| context | The current context. |
| data | The character data. |
| length | The length, in characters, of the provided data. |
| virtual void Mtx::SaxListenerT< Tchar >::mtxParseError | ( | int | offset | ) | [pure virtual] |
Called when the parser detects an error.
| context | The current context. |