21 xercesc::XMLPlatformUtils::Initialize();
23 xercesc::DOMImplementation*
domImpl = xercesc::DOMImplementationRegistry::getDOMImplementation(
qtxml::_toDOMS(
"Range"));
24 if (!domImpl)
return false;
25 domWriter = (
dynamic_cast<xercesc::DOMImplementation*
>(
domImpl))->createDOMWriter();
27 domWriter->canSetFeature(xercesc::XMLUni::fgDOMWRTFormatPrettyPrint,
true);
77 std::string att_name2, std::string att_val2) {
90 std::string att_name2, std::string att_val2,
91 std::string att_name3, std::string att_val3) {
106 xercesc::XMLFormatTarget* formTarget =
new xercesc::LocalFileFormatTarget(fname.c_str());
void createChildElement(std::string tag, std::string name)
xercesc::DOMElement * lastElement
int main(int argc, char **argv)
void createElement(std::string tag)
bool init(std::string main)
Write XML file.
~SiStripConfigWriter()
Destructor.
xercesc::DOMWriter * domWriter
xercesc::DOMImplementation * domImpl
XMLCh * _toDOMS(std::string temp)
void write(std::string fname)
SiStripConfigWriter()
Creator.
xercesc::DOMElement * theTopElement
xercesc::DOMDocument * theDoc