E4X stands for ECMAScript(European Computer Manufactures Association) for XML(eXtensible Markup Language).We can called as E4X is an programing language extensionn used to adds the ECMAScript(like: ActionScript,DMDScript,E4X, JavaScript,JScript) to XML.
1. Real life meaning of E4X is "JavaScript for XML".
2. E4X is an official JavaScript standard used to add direct support for XML.
3. Using E4X we can easily make scripting for XML with JavaScript.
4. Using E4X we can declare an XML object variable as same as declare Date and Array variable.
Example:
var p = new XML()
var q = new Date()
var r = new Array()
Because of some reasons we can say that JavaScript is same as ECMAScript.
1.ECMAScript is called as an official name for JavaScript.
2.ECMAScript is exactly same as JavaScript.
3.JavaScript is standardize by ECMA (The European Computer Manufacturers Association) organization.
ECMA(The European Computer Manufacturers Association)international was founded in 1961.
ECMA is an organization made to standardization of information and Communication Technology(ICT) and Consumer Electronics(CE).
We use ECMA standard with
1.JavaScript
2.C# Language
3.International Character Sets
4.Optical Disks
5.Magnetic Tapes
6.Data Compression
7.Data Communication etc.
ECMA-262(JavaScript1.3)was standarize in Dec1999.
ECMA-357 (E4X) was standardized in June2004.
We use E4X to make JavaScript supported with XML.
To make use E4X with Mozilla and Mozilla based browsers (like: Netscape) we used Spidermonkey JavaScript engine. It has been extended to implement E4X but presently we can only use it in nightly trunk builds. The present releases Mozilla 1.7 suite, Firefox 1.0, Netscape 7.2 does not supported E4X.
I have given you example to show XML document as JavaScript object.Example:
I have you simple XML document.
<message>
<date>2009-26-01</date>
<to>Abhi</to>
<from>Sud</from>
<heading>Don't forget</heading>
<body>Happy Birthday!</body>
</message> We can store this XML document in a string calles as message into an XML object variable vusing JavaScript.var v = new XML(message) 'or' Assign the XML text to the XML object variable directly.var v = new XML()v=<message>
<date>2009-26-01</date>
<to>Abhi</to>
<from>Sud</from>
<heading>Don't forget</heading>
<body>Happy Birthday!</body>
</message>
We can use JavaScript like that,document.write(v.from)
Output:Sud
Webmaster 20th of May 2012
Tell us what you feel about ECMA Script for XML (E4X) Interview Questions and Answers
All comments will be published after review. No login or registration is required to post a comment on ECMA Script for XML (E4X) Interview Questions and Answers We offer and invite you to submit your valuable comment now; Please be respectful of others when commenting. Insulting others, self-promotional comments, website promotional comments, marketing stuff, SEO Techniques, SMS-style content and off-topic comments will not be approved at this information portal.
So start sharing your thoughts regarding ECMA Script for XML (E4X) Interview Questions and Answers
Thank you.