# Problem with xml paths

**URL:** <https://forum.kirupa.com/t/problem-with-xml-paths/309268>\
**Category:** flash\
**Created:** [May 11, 2010, 9:19am UTC](https://forum.kirupa.com/t/problem-with-xml-paths/309268 "2010-05-11T09:19:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fischer](https://avatars.discourse-cdn.com/v4/letter/f/e9a140/32.png) [@Fischer](https://forum.kirupa.com/u/Fischer)\
**Post date:** [May 11, 2010, 9:19am UTC](https://forum.kirupa.com/t/problem-with-xml-paths/309268/1 "2010-05-11T09:19:38Z")

</div>

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!
