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_