#include <ulxr_xmlparse.h>
Inheritance diagram for ulxr::XmlParser:


Public Member Functions | |
| XmlParser () | |
| Constructs a parser. | |
Protected Member Functions | |
| void | assertEndElement (const char *current, const char *expected) |
| Checks if current and expected tag are the same. | |
| bool | testStartElement (const XML_Char *name, const XML_Char **atts) |
| Tests if the current opening tag is to be parsed by this inheritance level or by the parent. | |
| bool | testEndElement (const XML_Char *name) |
| Tests if the current closing tag is to be parsed by this inheritance level or by the parent. | |
Private Member Functions | |
| virtual void | charData (const XML_Char *s, int len) |
| Parses the content of the current xml element. | |
Definition at line 43 of file ulxr_xmlparse.h.
| ulxr::XmlParser::XmlParser | ( | ) |
| void ulxr::XmlParser::assertEndElement | ( | const char * | current, | |
| const char * | expected | |||
| ) | [protected] |
Checks if current and expected tag are the same.
| current | the name of the current tag | |
| expected | name of the expected tag |
Definition at line 78 of file ulxr_xmlparse.cpp.
References ulxr::NotWellformedError, ULXR_GET_STRING, ulxr_i18n, ULXR_PCHAR, and ULXR_TRACE.
| bool ulxr::XmlParser::testStartElement | ( | const XML_Char * | name, | |
| const XML_Char ** | atts | |||
| ) | [protected] |
Tests if the current opening tag is to be parsed by this inheritance level or by the parent.
Used ONLY internally.
| name | the name of the current tag | |
| atts | pointer to the current attributes (unused in XML-RPC) |
Reimplemented in ulxr::MethodCallParser, ulxr::MethodResponseParser, and ulxr::ValueParser.
Definition at line 60 of file ulxr_xmlparse.cpp.
References ulxr::NotWellformedError, ULXR_GET_STRING, ulxr_i18n, and ULXR_PCHAR.
Referenced by ulxr::ValueParser::startElement().
| bool ulxr::XmlParser::testEndElement | ( | const XML_Char * | name | ) | [protected] |
Tests if the current closing tag is to be parsed by this inheritance level or by the parent.
Used ONLY internally.
| name | the name of the current tag |
Reimplemented in ulxr::MethodCallParser, ulxr::MethodResponseParser, and ulxr::ValueParser.
Definition at line 69 of file ulxr_xmlparse.cpp.
References ulxr::NotWellformedError, ULXR_GET_STRING, ulxr_i18n, and ULXR_PCHAR.
Referenced by ulxr::ValueParser::endElement().
| void ulxr::XmlParser::charData | ( | const XML_Char * | s, | |
| int | len | |||
| ) | [private, virtual] |
Parses the content of the current xml element.
Used ONLY internally as callback from expat. The text from expat is encoded in UTF8.
| s | the current chunk of text | |
| len | valid len. |
Reimplemented from ulxr::ExpatWrapper.
Definition at line 46 of file ulxr_xmlparse.cpp.
References ULXR_PCHAR, and ULXR_TRACE.
1.5.1