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/12345678901.xml")
> sink("ihatetheirs.xls")
> print(x)
> sink()
>
> and then I can edit the saved file to cut some extra information
> not-xml related (and do what I want - again, sorry for the foul
> language).
>
> Alberto Monteiro
>
>

Try saveXML:

con <- xmlTreeParse(basic.xml)
root <- xmlRoot(con)
saveXML(root, "myfile.xml")

______________________________________________
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.

Reply via email to