8/21/2011 2:26:49 AM
Title:
use of e4x
Hi All,
Can anybody please explian e4x?
What is the use of e4x?
What is the difference between xml and e4x?
Thanks & Regards,
krishna
8/22/2011 6:24:55 AM
e4x is a set of classes and functionality to work with xml.Using e4x makes it easier to write and understand code for working with XML data.xml nodes data is accessible using the dot , so the code for xml is rather simple in actionscript when using e4x classes.
8/22/2011 6:29:26 AM
see this link to understand how to use e4x standard classes in actionscript to process xml easily.
http://livedocs.adobe.com/flex/3/html/help.html?content=13_Working_with_XML_03.html
8/22/2011 7:53:07 AM
before ActionScript 3 we used to write loops to read xml. But now e4x classes enable us to use (.) to access the xml nodes. It adds simplicity and ease of use for ActionScript users.
here is a good example to explain use of e4x in flex ActionScript.
http://ajaxandbeyond.blogspot.com/2007/09/working-with-data-in-flex-e4x.html
8/23/2011 12:58:51 AM
Full form of E4X is ECMAScript for XML.
ECMAScript for XML (E4X) is a programming language extension that adds native XML support to
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. It also offers a new way of making XML visible.