| ECMAScript for XML (E4X) is a programming language extension that adds native XML support to ECMAScript (JavaScript). It does this by providing access to the XML document in a form that feels natural for ECMAScript programmers. The goal is to provide an alternative, simpler syntax for accessing XML documents than via DOM interfaces.
E4X is standardized by Ecma International in ECMA-357 standard (currently in its first edition, June 2004). [edit]
Implementations
E4X is implemented (at least partially) in SpiderMonkey (Gecko's JavaScript engine) and in Rhino.
As Mozilla Firefox is based on Gecko, it can be used to run scripts using E4X. But, as the specification is relatively new, Firefox 1.0 does not support it. You'll need to use one of 1.5 alpha or beta releases. For more information about using E4X in Mozilla-based browsers, see [1]. |
| |