Daniel Fagerstrom wrote:
I took a look at the Rhino download page http://www.mozilla.org/rhino/download.html and found to my suprise that Rhino 1.6R1 (the version that we use in the trunk) includes ECMAScript for XML (E4X). That makes XML a native data type in JS and let you do XPath like things within the JS syntax, see http://lxr.mozilla.org/mozilla/source/js/rhino/examples/E4X/e4x_example.js for examples.
Quite cool IMO!
I would say more: that kicks ass big time! The soap example is particularily impressive.
Also, this could easily be turned into an "E4XGenerator" as yet another templating language.
Sylvain
-- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
