[R] read xml

2010-04-16 Thread Alex Campos
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

Re: [R] read XML

2008-07-30 Thread Martin Morgan
] "XMLTextNode" "XMLNode" > ..- attr(*, "class")= chr "XMLNode" > $ pagesByX:List of 1 > ..$ text: list() > .. ..- attr(*, "class")= chr [1:2] "XMLTextNode" "XMLNode" > ..- attr(*, "class")= chr &

Re: [R] read XML

2008-07-30 Thread Paulo Cardoso
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

Re: [R] read XML

2008-07-30 Thread Martin Morgan
"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

[R] read XML

2008-07-30 Thread Paulo Cardoso
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]]