e4x is a programming language extension that adds native XML support to ECMAscript. It does this by providing access to the XML document in a form that feels natural for ECMAscript programmers. The goal is to provide a simpler API for accessing XML documents, than other common APIs, such as DOM or XSLT.
Lets take a look at a few examples of how you can read XML data using E4X.
Instead of using a simple conditional operator like ==, you can also write a complicated predicate filtering function to pick out the data you need.