E4X
The ECMAScript for XML (E4X) specification defines a set of classes and functionality for working with XML data. E4X makes it easy to utilize XML structured data and reduce code complexity as well as create less coupling between code and external data.
Key features of E4X include:
- ECMAScript for XML specification defines a new set of classes and functionality for working with XML data.
- You manipulate XML data with well-known operators, such as the dot (.) operator.
- Use the @ and (.) operators not only to read data, but also to assign data.
- Using E4X functionality is much easier and more intuitive than "walking the DOM".
E4X Example:
An example application is available here |
|
There is a handy E4X expression tester here : http://www.linkwerk.com/pub/javascript/e4x/e4x-tester/