40#ifndef _xmlwrapp_tree_parser_h_
41#define _xmlwrapp_tree_parser_h_
45#include "xmlwrapp/export.h"
53XMLWRAPP_MSVC_SUPPRESS_DLL_MEMBER_WARN
79 using size_type = std::size_t;
131 tree_parser(
const char *data, size_type size,
bool allow_exceptions);
161 XMLWRAPP_DEPRECATED(
"use messages() instead")
162 const std::
string& get_error_message() const;
173 bool had_warnings() const;
197 std::unique_ptr<impl::tree_impl> pimpl_;
208XMLWRAPP_MSVC_RESTORE_DLL_MEMBER_WARN
The xml::document class is used to hold the XML tree and various bits of information about it.
Definition document.h:88
The xml::error_handler class is used to handle libxml2 errors and warnings emitted during parsing,...
Definition errors.h:89
The xml::error_messages class is used to store all the error messages which are collected while parsi...
Definition errors.h:190
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:77
tree_parser(const char *data, size_type size, bool allow_exceptions)
xml::tree_parser class constructor.
tree_parser(const char *filename, error_handler &on_error=throw_on_error)
xml::tree_parser class constructor.
tree_parser(const char *filename, bool allow_exceptions)
xml::tree_parser class constructor.
bool operator!() const
Check to see if a xml::tree_parser class is valid.
const error_messages & messages() const
Return error_messages object with errors and warnings collected during parsing.
tree_parser(const char *data, size_type size, error_handler &on_error=throw_on_error)
xml::tree_parser class constructor.
This file contains errors-handling classes: xml::exception and xml::error_handler and derived classes...
XML library namespace.
Definition attributes.h:55
This file contains the definition of the xml::init class.