1 #ifndef HCALConfigDBTools_XMLTools_XMLDOMBlock_h
2 #define HCALConfigDBTools_XMLTools_XMLDOMBlock_h
22 #include <boost/shared_ptr.hpp>
24 #include <xercesc/parsers/XercesDOMParser.hpp>
25 #include <xercesc/sax/HandlerBase.hpp>
26 #include <xercesc/dom/DOM.hpp>
51 XMLDOMBlock( XERCES_CPP_NAMESPACE::InputSource & _source );
54 XERCES_CPP_NAMESPACE::DOMDocument *
getDocument(
void );
63 const char *
getTagValue(
const std::string & tagName,
int _item, XERCES_CPP_NAMESPACE::DOMElement * _document );
66 XERCES_CPP_NAMESPACE::DOMElement *
add_element(XERCES_CPP_NAMESPACE::DOMElement * parent, XMLCh *
tagname, XMLCh *
value);
69 XERCES_CPP_NAMESPACE::DOMNode *
setTagValue( XERCES_CPP_NAMESPACE::DOMElement * _elem,
const std::string & tagName,
const std::string & tagValue,
int _item = 0 );
70 XERCES_CPP_NAMESPACE::DOMNode *
setTagValue(
const std::string & tagName,
const int & tagValue,
int _item = 0, XERCES_CPP_NAMESPACE::DOMDocument * _document =
NULL );
71 XERCES_CPP_NAMESPACE::DOMNode *
setTagValue( XERCES_CPP_NAMESPACE::DOMElement * _elem,
const std::string & tagName,
const int & tagValue,
int _item = 0 );
75 XERCES_CPP_NAMESPACE::DOMNode *
setTagAttribute( XERCES_CPP_NAMESPACE::DOMElement * _elem,
const std::string & tagName,
const std::string & attrName,
const int & attrValue,
int _item = 0);
78 void parse( XERCES_CPP_NAMESPACE::InputSource & _source );
94 XERCES_CPP_NAMESPACE::XercesDOMParser *
parser;
XERCES_CPP_NAMESPACE::DOMDocument * document
int write(std::string target="stdout")
XMLProcessor * theProcessor
XERCES_CPP_NAMESPACE::ErrorHandler * errHandler
std::string getTimestamp(time_t _time)
XERCES_CPP_NAMESPACE::DOMDocument * getDocumentConst(void) const
std::string & getString(void)
XERCES_CPP_NAMESPACE::DOMDocument * getDocument(void)
XERCES_CPP_NAMESPACE::DOMDocument * getNewDocument(std::string xmlFileName)
XERCES_CPP_NAMESPACE::DOMNode * setTagValue(const std::string &tagName, const std::string &tagValue, int _item=0, XERCES_CPP_NAMESPACE::DOMDocument *_document=NULL)
XERCES_CPP_NAMESPACE::XercesDOMParser * parser
XMLDOMBlock & operator+=(const XMLDOMBlock &other)
int init(std::string _root)
XERCES_CPP_NAMESPACE::DOMElement * add_element(XERCES_CPP_NAMESPACE::DOMElement *parent, XMLCh *tagname, XMLCh *value)
const char * getTagValue(const std::string &tagName, int _item=0, XERCES_CPP_NAMESPACE::DOMDocument *_document=NULL)
XERCES_CPP_NAMESPACE::DOMNode * setTagAttribute(const std::string &tagName, const std::string &attrName, const std::string &attrValue, int _item=0)
void parse(XERCES_CPP_NAMESPACE::InputSource &_source)
const char * getTagAttribute(const std::string &tagName, const std::string &attrName, int _item=0)