Hi
I am trying to read selected fields from a xml file with R using xml
package. So far I have learned the basics of this package by going
through the manual, examples, tutorial, and so on (www.omegahat.org/RSXML)
. The problem is that I am getting stuck when it comes down to more
complex xm
] "XMLTextNode" "XMLNode"
> ..- attr(*, "class")= chr "XMLNode"
> $ pagesByX:List of 1
> ..$ text: list()
> .. ..- attr(*, "class")= chr [1:2] "XMLTextNode" "XMLNode"
> ..- attr(*, "class")= chr &
quot;class")= chr "XMLNode"
..- attr(*, "class")= chr "XMLNode"
- attr(*, "class")= chr "XMLNode"
And I need the first two components of elements:List of 4.
>From those components I need to manipulate xmax and xmin and write a new xml
"Paulo Cardoso" <[EMAIL PROTECTED]> writes:
> I have a xml exported by Manifold GIS but I'm not being able to import it
> into R using XLM package.
I can
> library(XML)
> xml <- xmlTreeParse("tmp.xml", useInternal=TRUE)
> xpathApply(xml, "//component/@ymin", xmlValue)
[[1]]
[1] "0.32371064328183
I have a xml exported by Manifold GIS but I'm not being able to import it
into R using XLM package.
The file have this structure:
-
Layout 2
1
1
-
Any idea?
Thanks.
Paulo Cardoso
[[alternative HTML version deleted]]
5 matches
Mail list logo