test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SaxToDom.h
Go to the documentation of this file.
1 #ifndef x_SaxToDom_h
2 #define x_SaxToDom_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 SaxToDom : public XERCES_CPP_NAMESPACE::DefaultHandler
16 {
17 public:
18  typedef XERCES_CPP_NAMESPACE::Attributes Attributes;
19  typedef XERCES_CPP_NAMESPACE::SAXParseException SAXParseException;
20  SaxToDom();
21  ~SaxToDom();
22  void startElement(const XMLCh* const uri, const XMLCh* const localname, const XMLCh* const qname, const Attributes& attrs);
23  //void startElement(const XMLCh* const name, AttributeList& attributes);
24  void endElement(const XMLCh* const uri,
25  const XMLCh* const name,
26  const XMLCh* const qname);
27  const TinyDom & dom() const;
28 
29  // errors
30  void error(const SAXParseException& e);
31 
32 private:
33  std::vector<NodeName> parent_;
35 };
36 
37 #endif
XERCES_CPP_NAMESPACE::Attributes Attributes
Definition: SaxToDom.h:18
void startElement(const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const Attributes &attrs)
Definition: SaxToDom.cc:26
void endElement(const XMLCh *const uri, const XMLCh *const name, const XMLCh *const qname)
Definition: SaxToDom.cc:50
void error(const SAXParseException &e)
Definition: SaxToDom.cc:58
SaxToDom()
Definition: SaxToDom.cc:13
TinyDom dom_
Definition: SaxToDom.h:34
std::vector< NodeName > parent_
Definition: SaxToDom.h:33
~SaxToDom()
Definition: SaxToDom.cc:16
const TinyDom & dom() const
Definition: SaxToDom.cc:20
XERCES_CPP_NAMESPACE::SAXParseException SAXParseException
Definition: SaxToDom.h:19