1 #ifndef HCALConfigDBTools_XMLTools_XMLDOMBlock_h 2 #define HCALConfigDBTools_XMLTools_XMLDOMBlock_h 22 #include <xercesc/parsers/XercesDOMParser.hpp> 23 #include <xercesc/sax/HandlerBase.hpp> 24 #include <xercesc/dom/DOM.hpp> 45 XMLDOMBlock(XERCES_CPP_NAMESPACE::InputSource& _source);
48 XERCES_CPP_NAMESPACE::DOMDocument*
getDocument(
void);
58 XERCES_CPP_NAMESPACE::DOMDocument* _document =
nullptr);
67 XERCES_CPP_NAMESPACE::DOMDocument* _document =
nullptr);
68 XERCES_CPP_NAMESPACE::DOMNode*
setTagValue(XERCES_CPP_NAMESPACE::DOMElement* _elem,
75 XERCES_CPP_NAMESPACE::DOMDocument* _document =
nullptr);
76 XERCES_CPP_NAMESPACE::DOMNode*
setTagValue(XERCES_CPP_NAMESPACE::DOMElement* _elem,
84 XERCES_CPP_NAMESPACE::DOMNode*
setTagAttribute(XERCES_CPP_NAMESPACE::DOMElement* _elem,
93 XERCES_CPP_NAMESPACE::DOMNode*
setTagAttribute(XERCES_CPP_NAMESPACE::DOMElement* _elem,
100 void parse(XERCES_CPP_NAMESPACE::InputSource& _source);
115 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::DOMNode * setTagValue(const std::string &tagName, const std::string &tagValue, int _item=0, XERCES_CPP_NAMESPACE::DOMDocument *_document=nullptr)
std::string & getString(void)
XERCES_CPP_NAMESPACE::DOMDocument * getDocument(void)
XERCES_CPP_NAMESPACE::DOMDocument * getNewDocument(std::string xmlFileName)
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=nullptr)
XERCES_CPP_NAMESPACE::DOMDocument * getDocumentConst(void) const
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)