Example:
<data> <country name="Liechtenstein"> <rank>1</rank> <year>2008</year> <gdppc>The house is on the hill</gdppc> <neighbor name="Austria" direction="E"/> <neighbor name="Switzerland" direction="W"/> </country> <country name="Singapore"> <rank>4</rank> <year>2011</year> <gdppc>59900</gdppc> <neighbor name="Malaysia" direction="N"/> </country> </data>
I would like to get all values inside "country" without considering the child nodes, like this:
[1, 2008, 'The house is on the hill', 4, 2011, 59900]