Example to read, modify and store xml file, using TXMLEngine class The input file, produced by xmlnewfile.C macro is used If you need full xml syntax support, use TXMLParser instead
0.0116648674011
3.88566184044
Processing /mnt/build/workspace/root-makedoc-v614/rootspi/rdoc/src/v6-14-00-patches/tutorials/xml/xmlmodifyfile.C...
{
int cnt = 0;
while (child) {
cnt++;
int numsub = ScanNode(xml, child);
if (numsub > 0) xml.
NewIntAttr(info,
"num", numsub);
child = info;
}
}
void xmlmodifyfile(const char* filename = "example.xml")
{
if (xmldoc) {
}
}
- Author
- Sergey Linev
Definition in file xmlmodifyfile.C.