6#ifndef xmlpp_parser_hpp
7#define xmlpp_parser_hpp
18 enum result : uint8_t {
42 JUNK_AFTER_DOC_ELEMENT,
49 ATTRIBUTE_EXTERNAL_ENTITY_REF,
53 UNCLOSED_CDATA_SECTION,
54 EXTERNAL_ENTITY_HANDLING,
57 ENTITY_DECLARED_IN_PE,
58 FEATURE_REQUIRES_XML_DTD,
59 CANT_CHANGE_FEATURE_ONCE_PARSING,
72 RESERVED_PREFIX_XMLNS,
73 RESERVED_NAMESPACE_URI,
92 status_t parse(
const char* buffer,
int len,
bool isFinal);
93 error_t errorcode()
const;
94 size_t current_line_number()
const ;
95 size_t current_column_number()
const ;
105 explicit Attr(
const XML_Char** attrs) : attrs_(attrs){};
106 std::string getValue(
const char* key);
108 const XML_Char** attrs_{
nullptr};
the parser delegate handles the different parser events
Definition xmlparser.hpp:103
definition of the parser delegate interface.
Definition delegate.hpp:31
namespace for SAX2 xml Parser based on expat
Definition xmlparser.hpp:16
static const XML_Char * xmlGetAttrValue(const XML_Char **attrs, const XML_Char *key)
get value of xml attribute identifeid by key from attrs
Definition xmlparser.cpp:311
contains the xml parsers delegate interface