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);
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