[R] Parse XML

From: ppatel3026 <pratik.patel_at_us.rothschild.com>
Date: Tue, 10 Jun 2008 07:52:18 -0700 (PDT)

Could someone provide a link or examples of parsing XML document in R? Few specific questions below:

For instance I can retrieve specific nodes using this: node <- xpathApply(xml, "//" %+% xtag, xmlValue)

  1. I want to be able to retrieve parent node for this node, how can I do this? getParentNode() does not seem to cut it.
  2. How can I retrieve children nodes for a particular node?
  3. How can I create an iterator to iterate through the whole tree?

Thank you,

View this message in context: http://www.nabble.com/Parse-XML-tp17757373p17757373.html
Sent from the R help mailing list archive at Nabble.com.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 10 Jun 2008 - 15:50:32 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 10 Jun 2008 - 18:30:40 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive