Hello chappies.
Back in 2005, a new standard was brought out to extend JavaScript (ECMAScript) by adding a new “XML” data type:
[url]http://www.ecma-international.org/publications/standards/Ecma-357.htm
[url]http://en.wikipedia.org/wiki/E4x
This would allow direct input of XML into JavaScript and allow for querying with XQuery. For example:
[CODE]var sales = <sales vendor=”John”>
<item type=”peas” price=”4″ quantity=”6″/>
<item type=”carrot” price=”3″ quantity=”10″/>
<item type=”chips” price=”5″ quantity=”3″/>
</sales>;
alert( sales.item.(@type == “carrot”).@quantity );
Currently [B](four years later!)[URL=”http://www.w3schools.com/e4x/tryit.asp?filename=trye4x_demo”]Firefox supports this standard
Please help me push support by voting for support in Chromium and Safari’s bug trackers:
[url]http://code.google.com/p/chromium/issues/detail?id=30975
[url]https://bugs.webkit.org/show_bug.cgi?id=5381
Thanks ?
Robin.