30#ifndef _util_xml_class_XMLExpatParser_
31#define _util_xml_class_XMLExpatParser_
49 template <
class T>
friend class RefPtr;
83 void do_start(const XML_Char*, const XML_Char**);
86 void do_end(const XML_Char*);
98 static
void start_(
void*, const XML_Char*, const XML_Char**);
103 static
void end_(
void*, const XML_Char*);
Definition XMLElement.h:58
Definition XMLExpatParser.h:48
void init()
Initialize the state of the parser.
Definition XMLExpatParser.cpp:191
static void start_(void *, const XML_Char *, const XML_Char **)
Definition XMLExpatParser.cpp:211
RefPtr< XMLElement > parse(std::istream &)
Parse the given input buffer and return a parse tree.
Definition XMLExpatParser.cpp:86
static void end_(void *, const XML_Char *)
Definition XMLExpatParser.cpp:221
void do_start(const XML_Char *, const XML_Char **)
The method used to parse the start tag.
Definition XMLExpatParser.cpp:129
void do_end(const XML_Char *)
The method used to parse the end tag.
Definition XMLExpatParser.cpp:152
static void character_data_(void *, const XML_Char *, int)
Definition XMLExpatParser.cpp:228
XML_Parser parser_
The Expat parser.
Definition XMLExpatParser.h:74
RefPtr< XMLElement > leaf_
The current leaf of the parse tree.
Definition XMLExpatParser.h:80
XMLExpatParser()
Construct a new parser.
Definition XMLExpatParser.cpp:51
friend class ConstRefPtr
Definition XMLExpatParser.h:50
std::vector< RefPtr< XMLElement > > path_
The path that we have traversed so far in building the tree.
Definition XMLExpatParser.h:77
void do_character_data(const XML_Char *, int)
The method used to parse character (content) data.
Definition XMLExpatParser.cpp:166
virtual ~XMLExpatParser()
Destructor.
Definition XMLExpatParser.cpp:69
Definition XMLParser.h:42