Re: [R] XML write?

2008-04-29 Thread Gabor Grothendieck
On Tue, Apr 29, 2008 at 10:20 AM, Alberto Monteiro <[EMAIL PROTECTED]> wrote: > > Gabor Grothendieck wrote: > > > > By write, do you mean print? > > > No, I mean "save to a file". > > I solved the problem with this: > > library(XML) > x <- xmlTreeParse("Irpf2008/aplicacao/dados/12345678901/12345678

Re: [R] XML write?

2008-04-29 Thread Alberto Monteiro
Gabor Grothendieck wrote: > > By write, do you mean print? > No, I mean "save to a file". I solved the problem with this: library(XML) x <- xmlTreeParse("Irpf2008/aplicacao/dados/12345678901/12345678901.xml") sink("ihatetheirs.xls") print(x) sink() and then I can edit the saved file to cut some

Re: [R] XML write?

2008-04-29 Thread Jeffrey Horner
Alberto Monteiro wrote on 04/29/2008 08:37 AM: 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... Calling: library(help=XML) # or help(package=XML) li

Re: [R] XML write?

2008-04-29 Thread Gabor Grothendieck
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

[R] XML write?

2008-04-29 Thread Alberto Monteiro
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! ___