test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SaxToDom2.h
Go to the documentation of this file.
1 #ifndef x_SaxToDom2_h
2 #define x_SaxToDom2_h
3 
4 #include <xercesc/util/XercesDefs.hpp>
5 #include "xercesc/sax2/DefaultHandler.hpp"
8 
10 
11 #include <string>
12 #include <map>
13 #include <vector>
14 
15 class AttributeList;
16 
17 class SaxToDom2 : public XERCES_CPP_NAMESPACE::DefaultHandler
18 {
19 
20 public:
21  typedef XERCES_CPP_NAMESPACE::Attributes Attributes;
22  typedef XERCES_CPP_NAMESPACE::SAXParseException SAXParseException;
23  SaxToDom2();
24  ~SaxToDom2();
25  void startElement(const XMLCh* const uri, const XMLCh* const localname, const XMLCh* const qname, const Attributes& attrs);
26  //void startElement(const XMLCh* const name, AttributeList& attributes);
27  void endElement(const XMLCh* const uri,
28  const XMLCh* const name,
29  const XMLCh* const qname);
30  const TinyDom2 & dom() const;
31 
32  // errors
33  void error(const SAXParseException& e);
34 
35 private:
36  std::vector<Node2> parent_;
38 };
39 
40 #endif
XERCES_CPP_NAMESPACE::SAXParseException SAXParseException
Definition: SaxToDom2.h:22
void error(const SAXParseException &e)
Definition: SaxToDom2.cc:63
XERCES_CPP_NAMESPACE::Attributes Attributes
Definition: SaxToDom2.h:21
~SaxToDom2()
Definition: SaxToDom2.cc:21
void endElement(const XMLCh *const uri, const XMLCh *const name, const XMLCh *const qname)
Definition: SaxToDom2.cc:55
TinyDom2 dom_
Definition: SaxToDom2.h:37
std::vector< Node2 > parent_
Definition: SaxToDom2.h:36
void startElement(const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const Attributes &attrs)
Definition: SaxToDom2.cc:31
const TinyDom2 & dom() const
Definition: SaxToDom2.cc:25