Re: [R] Parsing XML to tree.

2013-05-08 Thread Gabor Grothendieck
On Wed, 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: > http://www.emouseatlas.org/emap/ema/theiler_stages/StageDefinition/Stage_xml/TS23.xml > I want is simple list of parents id of each compone

Re: [R] Parsing XML to tree.

2013-05-08 Thread avinash sahu
Hi All, I am using XML package. Even this type of simple parse is not giving intended result. tissue.tree <- xmlTreeParse(" http://www.emouseatlas.org/emap/ema/theiler_stages/StageDefinition/Stage_xml/TS23.xml";, handlers=list( anatomy=function(x,attr) {x},

Re: [R] Parsing XML to tree.

2013-05-08 Thread Ben Tupper
Hi, 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: > http://www.emouseatlas.org/emap/ema/theiler_stages/StageDefinition/Stage_xml/TS23.xml > I want is simple list of parents id of each compo

[R] Parsing XML to tree.

2013-05-08 Thread avinash sahu
Hi All, I am struggling to parse a XML file that describes a tree. The XML file is present here: http://www.emouseatlas.org/emap/ema/theiler_stages/StageDefinition/Stage_xml/TS23.xml I want is simple list of parents id of each component. The output will look like Component = [7148 7149 7150 7