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
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
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
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
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!
___
5 matches
Mail list logo