Inheritance diagram for xmlpp::Parser:
Public Member Functions | |
Parser () | |
virtual | ~Parser () |
virtual void | set_validate (bool val=true) |
By default, the parser will not validate the XML file. | |
virtual bool | get_validate () const |
See set_validate(). | |
virtual void | set_substitute_entities (bool val=true) |
Set whether the parser will automatically substitute entity references with the text of the entities' definitions. | |
virtual bool | get_substitute_entities () const |
See set_substitute_entities(). | |
virtual void | parse_file (const std::string &filename)=0 |
Parse an XML document from a file. | |
virtual void | parse_memory (const std::string &contents)=0 |
Parse an XML document from a string. | |
virtual void | parse_stream (std::istream &in)=0 |
Parse an XML document from a stream. | |
Protected Member Functions | |
virtual void | initialize_context () |
virtual void | release_underlying () |
virtual void | on_validity_error (const std::string &message) |
virtual void | on_validity_warning (const std::string &message) |
virtual void | handleException (const exception &e) |
virtual void | check_for_exception () |
virtual void | check_for_validity_messages () |
Static Protected Member Functions | |
void | callback_validity_error (void *ctx, const char *msg,...) |
void | callback_validity_warning (void *ctx, const char *msg,...) |
Protected Attributes | |
_xmlParserCtxt * | context_ |
exception * | exception_ |
std::string | validate_error_ |
std::string | validate_warning_ |
bool | validate_ |
bool | substitute_entities_ |
|
|
|
|
|
|
|
|
|
|
|
|
|
See set_substitute_entities().
|
|
See set_validate().
|
|
|
|
|
|
|
|
|
|
Parse an XML document from a file.
Implemented in xmlpp::DomParser, and xmlpp::SaxParser. |
|
Parse an XML document from a string.
Implemented in xmlpp::DomParser, and xmlpp::SaxParser. |
|
Parse an XML document from a stream.
Implemented in xmlpp::DomParser, and xmlpp::SaxParser. |
|
Reimplemented in xmlpp::DomParser, and xmlpp::SaxParser. |
|
Set whether the parser will automatically substitute entity references with the text of the entities' definitions. For instance, this affects the text returned by ContentNode::get_content(). By default, the parser will not substitute entities, so that you do not lose the entity reference information.
|
|
By default, the parser will not validate the XML file.
|
|
|
|
|
|
|
|
|
|
|
|
|