Sean Corfield, over at An Architect's View, has provided some more info. Basically E4X provides a more complete DOM, with methods to read, create, and query an XML document (including an XQuery implementation).
Also, it appears that E4X has grown from BEA's scripting extensions, so it's not a brand new thing - that's good, in that it's been in the wild for a while, rather than being restricted to the lab.
Bookmarking this, in case it comes in handy for the Pachyderm flash templates...
var over27inEng = empdoc..employee.(department.@id == 500 && age > 27);
This will return all
employee nodes (like
//employee in XPath) which have:
departmentchild with an
idattribute equal to 500 and
- an age
childwith a value greater than 27