#include <XMLParser.h>


Public Member Functions | |
| XMLParser (Element *root) | |
| DocumentHeader * | GetDocumentHeader () |
| const URL & | GetSourceURL () const |
| bool | PushHandler (const String &tag) |
| void | PushDefaultHandler () |
| Pushes the default element handler onto the parse stack. | |
| const ParseFrame * | GetParseFrame () const |
| Access the current parse frame. | |
Static Public Member Functions | |
| static XMLNodeHandler * | RegisterNodeHandler (const String &tag, XMLNodeHandler *handler) |
| static void | ReleaseHandlers () |
| Releases all registered node handlers. This is called internally. | |
Protected Member Functions | |
| virtual void | HandleElementStart (const String &name, const XMLAttributes &attributes) |
| Called when the parser finds the beginning of an element tag. | |
| virtual void | HandleElementEnd (const String &name) |
| Called when the parser finds the end of an element tag. | |
| virtual void | HandleData (const String &data) |
| Called when the parser encounters data. | |
Data Structures | |
| struct | ParseFrame |
| XMLNodeHandler * Rocket::Core::XMLParser::RegisterNodeHandler | ( | const String & | tag, | |
| XMLNodeHandler * | handler | |||
| ) | [static] |
Registers a custom node handler to be used to a given tag.
| [in] | tag | The tag the custom parser will handle. |
| [in] | handler | The custom handler. |
| DocumentHeader * Rocket::Core::XMLParser::GetDocumentHeader | ( | ) |
Returns the XML document's header.
| const URL & Rocket::Core::XMLParser::GetSourceURL | ( | ) | const |
| bool Rocket::Core::XMLParser::PushHandler | ( | const String & | tag | ) |
Pushes an element handler onto the parse stack for parsing child elements.
| [in] | tag | The tag the handler was registered with. |
| const XMLParser::ParseFrame * Rocket::Core::XMLParser::GetParseFrame | ( | ) | const |
Access the current parse frame.
Access the current parse frame.