Jump to content

ECMAScript for XML: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
added link to polish version
Spankman (talk | contribs)
spam
Line 6: Line 6:
E4X is implemented (at least partially) in [[SpiderMonkey]] ([[Gecko (layout engine)|Gecko]]'s JavaScript engine) and in [[Rhino (JavaScript engine)|Rhino]].
E4X is implemented (at least partially) in [[SpiderMonkey]] ([[Gecko (layout engine)|Gecko]]'s JavaScript engine) and in [[Rhino (JavaScript engine)|Rhino]].


As [[Mozilla Firefox]] is based on [[Gecko (layout engine)|Gecko]], it can be used to run scripts using E4X. The specification is relatively new and is only supported in the 1.5 release or later. For more information about using E4X in Mozilla-based browsers, see [http://www.faqts.com/knowledge_base/view.phtml/aid/34740].
As [[Mozilla Firefox]] is based on [[Gecko (layout engine)|Gecko]], it can be used to run scripts using E4X. The specification is relatively new and is only supported in the 1.5 release or later.

Macromedia's ActionScript 3 scripting language fully supports E4X and will available to developers later in 2005. For more information about this, see [http://www.macromedia.com/devnet/flex/articles/flex2_intro.html].
Macromedia's ActionScript 3 scripting language fully supports E4X and will available to developers later in 2005. For more information about this, see [http://www.macromedia.com/devnet/flex/articles/flex2_intro.html].



Revision as of 12:09, 2 June 2006

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. Additionally, it offers a new way of visualizing XML. Up to the release of E4X XML was always accessed at an object level. E4X changes that, and thinks of XML as a primitive (equivalent to a character, integer, or boolean). This implies faster access, better support, and acceptance as a building block (data structure) of a program.

E4X is standardized by Ecma International in ECMA-357 standard. The first edition was published in June 2004, the second edition in December 2005.

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. The specification is relatively new and is only supported in the 1.5 release or later. Macromedia's ActionScript 3 scripting language fully supports E4X and will available to developers later in 2005. For more information about this, see [1].

Resources