39 #ifndef _xmlwrapp_event_parser_h_ 40 #define _xmlwrapp_event_parser_h_ 44 #include "xmlwrapp/export.h" 85 bool parse_file(
const char *filename);
93 bool parse_stream(std::istream& stream);
104 bool parse_chunk(
const char *chunk, size_type length);
122 const std::string& get_error_message()
const;
134 virtual bool start_element(
const std::string& name,
const attrs_type& attrs) = 0;
144 virtual bool end_element(
const std::string& name) = 0;
153 virtual bool text(
const std::string& contents) = 0;
167 virtual bool cdata(
const std::string& contents);
182 virtual bool processing_instruction(
const std::string& target,
const std::string& data);
195 virtual bool comment(
const std::string& contents);
205 virtual bool warning(
const std::string& message);
215 void set_error_message(
const char *message);
218 friend struct impl::epimpl;
219 impl::epimpl *pimpl_;
230 #endif // _xmlwrapp_event_parser_h_ std::size_t size_type
size type
Definition: event_parser.h:72
This file contains the definition of the xml::init class.
std::map< std::string, std::string > attrs_type
a type for holding XML node attributes
Definition: event_parser.h:70
XML library namespace.
Definition: attributes.h:51
The xml::event_parser is used to parse an XML document by calling member functions when certain thing...
Definition: event_parser.h:66