Hi
I have a problem with some simple coding here. I am building a world map with countries and provinses using kml files, that I process as xml files. My problem is, that the kml files I get has different designs, and the information I need is in different places. So I need to find a specifik xml tags inside another specifik xml tag called <Placemark>
Its pretty simple when I have only one kind of kml file, I just call the known path. like this:
var coordList:XMLList = xmlData.Document.Placemark.MultiGeometry.Polygon.outerBoundaryIs.LinearRing.coordinates;
But what if I dont know the exact path, but I know that the tag Im looking for (<coordinates>) is always somewhere in the <Placemark> tag. What I want to write is something like this
var coordList:XMLList = xmlData.Document.Placemark.*.LinearRing.coordinates;
but this doesnt work…
Any help would be appreciated!