XPath4AS2 is an ActionScript 2 library to add XPath functionality to Flash.
What is XPath?
XPath is a concise language for selecting nodes from an XML document. It allows you to write a short string query that defines a path to the nodes you want to select. For example, if you had a document that looks like this:
<products> <product SKU="7123734">
<name>Big Metal Pot</name>
You could select an array of products with this query
You could get all products that cost more than $5.00 like this
myXPathDocument.selectNodes("/products/product[./price > 5]");
You could get an array of all the SKUs with this
XPath is a very powerful language that can greatly simplify working with XML documents.
( As found in http://www.xfactorstudio.com/Actionscript/AS2/XPath/)
The AS 1 implementation of the same can be found at http://www.xfactorstudio.com/Actionscript/AS1/XPath/
Read more about XPath for Flash here.
You can dowload it here.