By write, do you mean print? In that case using the basic.xml file that comes with the XML package:
library(XML) basic.xml <- system.file("exampleData", "basic.xml", package = "XML") # try this con <- xmlTreeParse(basic.xml) root <- xmlRoot(con) root # or if you are using internal nodes: con <- xmlTreeParse(basic.xml, useInternalNodes = TRUE) root <- xmlRoot(con) cat(saveXML(root), "\n") On Tue, Apr 29, 2008 at 9:37 AM, Alberto Monteiro <[EMAIL PROTECTED]> wrote: > Is there any function to write a XML structure, after it was > read using xmlTreeParse? > > Ex: > library(XML) > x <- xmlTreeParse("Irpf2008/aplicacao/dados/12345678901/12345678901.xml") > # write it... > > Alberto Monteiro > > PS: please, brazilians, don't be offended by my foul language! > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.