It is hard to find readable documentation on ECMAScript E4X. Adobe's Flex 2 documentation is much easier to read than the E4X specification. Look under Programming ActionScript 3.0 / Core ActionScript 3.0 Data Types and Classes / Working with XML. Of course, you must take care using these documents as ActionScript is (mostly) a superset of ECMAScript.