[R] Parsing XML to tree.
btupper at bigelow.org
Wed May 8 18:37:12 CEST 2013
On May 8, 2013, at 3:43 AM, avinash sahu wrote:
> Hi All,
> I am struggling to parse a XML file that describes a tree. The XML file is
> present here:
> I want is simple list of parents id of each component. The output will look
> Component = [7148 7149 7150 7151..... 7177..............]
> Parents= [NA 7148 7149 7150.... 7148..............]
> I meant if components are arranged from 7148 to 8419, I need their parents
Why don't you show us the steps that you have tried? I hope you are using the XML package for this; if not, I highly recommend it.
> I hope this is clear.
> [[alternative HTML version deleted]]
> 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.
Bigelow Laboratory for Ocean Sciences
60 Bigelow Drive, P.O. Box 380
East Boothbay, Maine 04544
More information about the R-help