SUPPORT THE WORK

GetWiki

ECMAScript for XML

ARTICLE SUBJECTS
aesthetics  →
being  →
complexity  →
database  →
enterprise  →
ethics  →
fiction  →
history  →
internet  →
knowledge  →
language  →
licensing  →
linux  →
logic  →
method  →
news  →
perception  →
philosophy  →
policy  →
purpose  →
religion  →
science  →
sociology  →
software  →
truth  →
unix  →
wiki  →
ARTICLE TYPES
essay  →
feed  →
help  →
system  →
wiki  →
ARTICLE ORIGINS
critical  →
discussion  →
forked  →
imported  →
original  →
ECMAScript for XML
[ temporary import ]
please note:
- the content below is remote from Wikipedia
- it has been imported raw for GetWiki
ECMAScript for XML (E4X) is the standard ISO/IEC 22537:2006 weblink 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 weblink" title="web.archive.org/web/20131104082608weblink">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.WEB, E4X - Archive of obsolete content - MDN,weblink Mozilla, 10 September 2014,

Browser support

E4X is supported by Mozilla's Rhino, used in OpenOffice.org and several other projects. It is also supported by Tamarin, the JavaScript engine used in the Flash virtual machine. It is not supported by other common engines like Nitro (Safari), V8 (Google Chrome), Carakan (Opera), Chakra (Internet Explorer) and Chakra (Edge).WEB, Issue 30975: Implement E4X Support for scripts and extensions,weblink Google, 21 May 2012, E4X was also supported by SpiderMonkey (used in Firefox and Thunderbird), but has been removed. In Firefox 10, E4X syntax was no longer accepted in SpiderMonkey when ECMAScript 5 "strict mode" is enabled.WEB, Firefox 10 for developers,weblink Mozilla, 21 May 2012, yes,weblink 5 May 2012, According to Brendan Eich, "This thus signals start of deprecation for E4X in SpiderMonkey."WEB, Bug 695577 - E4X syntax should not be accepted in ES5 strict mode,weblink Mozilla, 21 May 2012, and "has been disabled by default for webpages (content) in Firefox 17, disabled by default for chrome in Firefox 20, and has been removed in Firefox 21"WEB, E4X,weblink Mozilla, 12 February 2013,

Example

var sales =



;
alert( sales.item.(@type == "carrot").@quantity );alert( sales.@vendor );for each( var price in sales..@price ) {
alert( price );
}delete sales.item[0];sales.item += ;sales.item.(@type == "oranges").@quantity = 4;

Implementations

The first implementation of E4X was designed by Terry Lucas and John Schneider and appeared in BEA's Weblogic Workshop 7.0 released in February 2002. BEA's implementation was based on Rhino and released before the ECMAScript E4X spec was completed in June 2004. John Schneider wrote an weblink" title="web.archive.org/web/20080403052807weblink">article on the XML extensions in BEA's Workshop at the time.
  • E4X was implemented in SpiderMonkey (Gecko's JavaScript engine) since version 1.6.0SpiderMonkey 1.6.0 release notes {{webarchive|url=https://web.archive.org/web/20090415002451weblink |date=2009-04-15 }} until version 20, and is in Rhino (Mozilla's other JavaScript engine written in Java instead of C) since version 1.6R1.Rhino 1.6R1 Change log
  • As Mozilla Firefox is based on Gecko, older versions could be used to run scripts using E4X. But this feature is deprecated since release 16 and removed in release 18.
  • Adobe's ActionScript 3 scripting language fully supports E4X. Early previews of ActionScript 3 were first made available in late 2005. Adobe officially released the language with Flash Player 9 on June 28, 2006.
  • E4X is available in Flash CS3, Adobe AIR and Adobe Flex as they use ActionScript 3 as a scripting language.
  • E4X is also available in Adobe Acrobat and Adobe Reader versions 8.0 or higher (notablyWEB,weblink 2015-07-16, Acrobat Help / New features summary, Forward Ported from SpiderMonkey version 17WEB,weblink 2015-07-16, 15.008.20082 Planned Update, July 14, 2015, and suggested may be dropped in the near future).
  • E4X is also available in Aptana's Jaxer Ajax application server which uses the Mozilla engine server-side.
  • Since the release of Alfresco Community Edition 2.9B, E4X is also available in this enterprise document management system.
  • E4X is available as part of Mirth Connect's JavaScript message transformation engine.

References

{{Reflist}}

External links

{{Ecma International Standards}}

- content above as imported from Wikipedia
- "ECMAScript for XML" does not exist on GetWiki (yet)
- time: 1:49am EST - Sat, Feb 23 2019
[ this remote article is provided by Wikipedia ]
LATEST EDITS [ see all ]
GETWIKI 09 MAY 2016
GETWIKI 18 OCT 2015
M.R.M. Parrott
Biographies
GETWIKI 20 AUG 2014
GETWIKI 19 AUG 2014
GETWIKI 18 AUG 2014
Wikinfo
Culture
CONNECT