6 using namespace xercesc;
24 XMLPlatformUtils::Initialize();
26 catch (
const XMLException& toCatch) {
27 cout <<
"Problem to initialise XML !!! " << endl;
30 DOMImplementation* domImpl = DOMImplementationRegistry::getDOMImplementation(
qtxml::_toDOMS(
"Range"));
31 domWriter = (
dynamic_cast<DOMImplementation*
>(domImpl))->createDOMWriter();
32 domWriter->canSetFeature(XMLUni::fgDOMWRTFormatPrettyPrint,
true);
34 theTopElement = theDoc->getDocumentElement();
35 theTopElement->appendChild(theDoc->createTextNode(
qtxml::_toDOMS(
"\n")));
44 theTopElement->appendChild(lastLayout);
50 lastLayout->appendChild(theDoc->createTextNode(
qtxml::_toDOMS(
"\n")));
53 lastLayout->appendChild(lastRow);
54 lastLayout->appendChild(theDoc->createTextNode(
qtxml::_toDOMS(
"\n")));
61 lastRow->appendChild(theDoc->createTextNode(
qtxml::_toDOMS(
"\n")));
63 lastRow->appendChild(e1);
74 XMLFormatTarget* formTarget =
new LocalFileFormatTarget(fname.c_str());
75 domWriter->writeNode(formTarget, *theTopElement);
bool init()
Write XML file.
~SiPixelConfigWriter()
Destructor.
SiPixelConfigWriter()
Creator.
void write(std::string &fname)
void createColumn(std::string &element, std::string &name)
XMLCh * _toDOMS(std::string temp)
void createLayout(std::string &name)