I'm working with an OpenStreetMap (.osm) file with Android's XmlPullParser. The part I'm having problems with is this:
<way id='-13264' action='modify' visible='true'>
<nd ref='-13252' />
<nd ref='-13251' />
<nd ref='-13249' />
</way>
I need to work with the nd- nodes within every way- node, one way- node at a time (that's the crux), creating a certain data structure between those nodes to be precise. There seems to be no convenient method to get all the child nodes of one node in the XmlPullParser, so i tried a lot of that nested if/elseif- stuff on those nodes, but can't get it to work. Can someone provide me with some sample code to work with child nodes of a node, but keeping the child nodes of similar parent nodes seperate?