Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

ECMAScript for XML

From Wikipedia, the free encyclopedia
Programming language extension

ECMAScript for XML (E4X) was an extension toECMAScript (which includesActionScript,JavaScript, andJScript) to add native support for Extensible Markup Language (XML).[1] The goal was to provide a simpler alternative to theDocument Object Model (DOM) interface for accessing XML documents. E4X added XML as aprimitive data structure to allow faster access[clarification needed] and better support within the language.

E4X was standardized byEcma International in theECMA-357 standard. The first edition was published in June 2004 and the second edition in December 2005. However, the E4X standard was deprecated by the Mozilla Foundation in 2014,[2] and it was withdrawn by ISO/IEC in 2021.[1]

The first implementation of E4X was designed by Terry Lucas and John Schneider and appeared inBEA's Weblogic Workshop 7.0, released in February 2002.[citation needed] BEA's implementation was based onRhino and released before the ECMAScript E4X spec was completed in June 2004.[citation needed]

Browser support

[edit]

E4X is supported by Mozilla'sRhino, as well as byTamarin, the JavaScript engine used in theFlash virtual machine.[citation needed] However, it is unsupported by other common engines likeNitro (Safari),V8 (Google Chrome),Carakan (Opera), andChakra (Internet Explorer).[3]

E4X was supported bySpiderMonkey (used inFirefox andThunderbird). However, E4X was deprecated in Firefox 10[4] and eventually removed in Firefox 21.[5][clarification needed]

E4X was supported by theOpenOffice.org software suite.[citation needed]

Example

[edit]
letsales=<salesvendor="John"><itemtype="peas"price="4"quantity="6"/><itemtype="carrot"price="3"quantity="10"/><itemtype="chips"price="5"quantity="3"/></sales>;alert(sales.item.(@type=="carrot").@quantity);alert(sales.@vendor);foreach(letpriceinsales..@price){alert(price);}deletesales.item[0];sales.item+=<itemtype="oranges"price="4"/>;sales.item.(@type=="oranges").@quantity=4;

See also

[edit]

References

[edit]
  1. ^ab"ISO/IEC 22537:2006 Information technology – ECMAscript for XML: E4X specification".International Organization for Standardization. Retrieved2024-08-17.
  2. ^"E4X – Archive of obsolete content – MDN". Mozilla. Archived fromthe original on 24 July 2014. Retrieved10 September 2014.
  3. ^"Issue 30975: Implement E4X Support for scripts and extensions". Retrieved21 May 2012.
  4. ^"Firefox 10 for developers". Mozilla. Archived fromthe original on 5 May 2012. Retrieved21 May 2012.
  5. ^"E4X". Mozilla. Archived fromthe original on 30 September 2013. Retrieved12 February 2013.

External links

[edit]
Standards ofEcma International
Application interfaces
File systems (tape)
File systems (disk)
Graphics
Programming languages
Radio link interfaces
Other
List of Ecma standards (1961 – present)
1–9999
10000–19999
20000–29999
30000+
IEC
ISO/IEC
Related
Retrieved from "https://en.wikipedia.org/w/index.php?title=ECMAScript_for_XML&oldid=1322212963"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp