[R] How to filter xml value in R?

Manish Gupta mandecent.gupta at gmail.com
Wed Nov 14 05:55:41 CET 2012


Hi,

I have one xml file. 

<Class>
     <Node1 code ="1"> First node </Node1>
     <Node2 code ="1"> Second node </Node2>
     <Node3 code ="1"> Third node </Node3>
    <Node1 code ="2"> Fourth node </Node1>
</Class>

for (i in 1:xmlSize())
{
     print(Class[i])   # how can i filter Node1 ?
}

by using xmlChildren(Class), i get nodes of Class. How can i filter Node1
and print other elements of Class node?

Regards





--
View this message in context: http://r.789695.n4.nabble.com/How-to-filter-xml-value-in-R-tp4649465.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list