XPath in Flash
Within Flash 2004 you can do simple XPath searches with the use of the XPathAPI class. It has two methods: selectNodeList and selectSingleNode.
http://antville.medien.uni-weimar.de/ape/stories/2917/