40 #ifndef _xmlwrapp_tree_parser_h_ 41 #define _xmlwrapp_tree_parser_h_ 45 #include "xmlwrapp/export.h" 76 typedef std::size_t size_type;
116 tree_parser(
const char *filename,
bool allow_exceptions);
128 tree_parser(
const char *data, size_type size,
bool allow_exceptions);
147 bool operator!()
const;
158 XMLWRAPP_DEPRECATED(
"use messages() instead")
159 const std::string& get_error_message()
const;
170 bool had_warnings()
const;
192 void init(
const char *data, size_type size,
error_handler *on_error);
194 impl::tree_impl *pimpl_;
205 #endif // _xmlwrapp_tree_parser_h_ The xml::tree_parser class is used to parse an XML document and generate a tree like structure of xml...
Definition: tree_parser.h:73
This file contains errors-handling classes: xml::exception and xml::error_handler and derived classes...
The xml::error_handler class is used to handle libxml2 errors and warnings emitted during parsing...
Definition: errors.h:84
This file contains the definition of the xml::init class.
error_handler_throw_on_error throw_on_error
Error handler object that throws on any error.
The xml::init class is used to configure the XML parser.
Definition: init.h:63
The xml::document class is used to hold the XML tree and various bits of information about it...
Definition: document.h:84
XML library namespace.
Definition: attributes.h:51
The xml::error_messages class is used to store all the error messages which are collected while parsi...
Definition: errors.h:185