xmlwrapp
Lightweight C++ XML parsing library
|
Go to the documentation of this file.
40 #ifndef _xmlwrapp_tree_parser_h_
41 #define _xmlwrapp_tree_parser_h_
45 #include "xmlwrapp/export.h"
76 typedef std::size_t size_type;
128 tree_parser(
const char *data, size_type size,
bool allow_exceptions);
158 XMLWRAPP_DEPRECATED(
"use messages() instead")
159 const std::
string& get_error_message() const;
170 bool had_warnings() const;
194 impl::tree_impl *pimpl_;
205 #endif // _xmlwrapp_tree_parser_h_
tree_parser(const char *filename, bool allow_exceptions)
xml::tree_parser class constructor.
const error_messages & messages() const
Return error_messages object with errors and warnings collected during parsing.
bool operator!() const
Check to see if a xml::tree_parser class is valid.
The xml::error_handler class is used to handle libxml2 errors and warnings emitted during parsing,...
Definition: errors.h:85
The xml::document class is used to hold the XML tree and various bits of information about it.
Definition: document.h:85
error_handler_throw_on_error throw_on_error
Error handler object that throws on any error.
tree_parser(const char *data, size_type size, bool allow_exceptions)
xml::tree_parser class constructor.
The xml::init class is used to configure the XML parser.
Definition: init.h:64
The xml::tree_parser class is used to parse an XML document and generate a tree like structure of xml...
Definition: tree_parser.h:74
The xml::error_messages class is used to store all the error messages which are collected while parsi...
Definition: errors.h:186
tree_parser(const char *filename, error_handler &on_error=throw_on_error)
xml::tree_parser class constructor.
XML library namespace.
Definition: attributes.h:52
tree_parser(const char *data, size_type size, error_handler &on_error=throw_on_error)
xml::tree_parser class constructor.