May 27, 2021 XML
E4X adds direct support for XML to JavaScript.
This example applies only to Firefox!
E4X is the official JavaScript standard, with added direct support for XML.
With E4X, you can declare an XML object variable by declaring a Date or Array object variable:
ECMAScript is the official name for JavaScript. EcMA-262 (JavaScript 1.3) was standardized in December 1999.
E4X is an extension of JavaScript that adds direct support for XML. The ECMA-357 (E4X) was standardized in June 2004.
The ECMA Organization (established in 1961) is dedicated to the standardization of information and communications technology (ICT) and consumer electronics (CE). The ECMA standards are:
The following example is a cross-browser instance that loads an existing XML document ("note.xml") into the XML parser and displays a message description:
The following example is the same as the one above, but uses E4X:
It's much easier, isn't it?
Firefox is currently the only browser with better support for E4X.
Opera, Chrome, or Safari are not currently supported by E4X.
So far, there is no indication of E4X support in Internet Explorer.
The E4X does not receive widespread support. Perhaps it provides too few practical features to be covered by other solutions: