🔗 ECMAScript for XML - Direct XML Syntax in ECMAScript
ECMAScript for XML (E4X) is the standard ISO/IEC 22537:2006 [1] programming language extension that adds native XML support to ECMAScript (which includes ActionScript, JavaScript, and JScript). The goal is to provide an alternative to DOM interfaces that uses a simpler syntax for accessing XML documents. It also offers a new way of making XML visible. Before the release of E4X, XML was always accessed at an object level. E4X instead treats XML as a primitive (like characters, integers, and booleans). This implies faster access, better support, and acceptance as a building block (data structure) of a program.
E4X is standardized by Ecma International in the ECMA-357 standard. The first edition was published in June 2004, the second edition in December 2005.
The E4X standard was deprecated by the Mozilla Foundation in 2014.
Discussed on
- "ECMAScript for XML - Direct XML Syntax in ECMAScript" | 2021-06-01 | 38 Upvotes 41 Comments