[R] XML write?
Gabor Grothendieck
ggrothendieck at gmail.com
Tue Apr 29 15:59:42 CEST 2008
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
<albmont at centroin.com.br> 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 at 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.
>
More information about the R-help
mailing list