Dear,

I want to read XML documents, add child nodes to some elements and store
everything back as an XML document.

I've tryed the following:

doc <- xmlTreeParse("file.xml")       
QTListNode<-xmlElementsByTagName(xmlRoot(doc)[[1]],"tagname") 
append.xmlNode(QTListNode[[1]],newXMLNode(name ="Norm", attrs = NULL))
saveXML(doc, file = "out.xml", compression = 0, indent=T)

This doesn't seem to work.
Can anyone help?

Thanks,
Steffen

______________________________________________
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to