1 #ifndef _CondTools_Ecal_XMLHelperFunctions_ 2 #define _CondTools_Ecal_XMLHelperFunctions_ 13 #include <xercesc/dom/DOMNode.hpp> 19 #include <xercesc/dom/DOM.hpp> 30 xercesc::DOMElement*
writeCell(xercesc::DOMNode* node,
const DetId& detid);
43 template <
class T>
void GetNodeData(xercesc::DOMNode* node,
T& value)
46 std::stringstream value_ss(value_s);
57 xercesc::DOMDocument * doc = parentNode->getOwnerDocument();
58 xercesc::DOMElement* new_node = doc->createElement(
cms::xerces::uStr(tag.c_str()).ptr());
59 parentNode->appendChild(new_node);
61 std::stringstream value_ss;
64 xercesc::DOMText* tvalue =
66 new_node->appendChild(tvalue);
void GetNodeStringData(xercesc::DOMNode *node, std::string &value)
get the node data as string. Needs to be used to avoid splitting
void WriteNodeWithValue(xercesc::DOMNode *parentNode, const std::string &tag, const T &value)
write a node with
std::string toString(XMLCh const *toTranscode)
void readHeader(xercesc::DOMNode *parentNode, EcalCondHeader &header)
read header from
void writeHeader(xercesc::DOMNode *parentNode, const EcalCondHeader &header)
write
ZStr< XMLCh > uStr(char const *str)
void GetNodeData(xercesc::DOMNode *node, T &value)
get the node data
xercesc::DOMNode * getChildNode(xercesc::DOMNode *node, const std::string &nodename)
get the child of
xercesc::DOMElement * writeCell(xercesc::DOMNode *node, const DetId &detid)
Append a Cell node with attributes to.
const DetId readCellId(xercesc::DOMElement *node)
Assuming.