Re: [R] Extracting XML value

2015-09-03 Thread Ben Tupper
Hi, You are very close and your understanding is correct - you need to extract the root node from the XMLDocument returned from xmlTreeParse. library(XML) txt <- "\n\n \n\n\n\n\n" # parse the text tree and extract the root node obs <- xmlRoot(xmlTreeParse(txt, useInternalNodes = TRUE, asText

[R] Extracting XML value

2015-09-03 Thread Glenn Schultz
All, I have made it as far as generating an api call which returns the following xml [1] "\n\n  \n\n\n\n\n" attr(,"Content-Type")               charset  "text/xml"    "UTF-8"  following DTL's presentation on the Berkley site and the package help I parsed the xml doc = xmlTreeParse(USSW10, asTe