You're close. If you want node 3 under category 4, you're going to have to specify something about the category as well as the node.
If you just wanted all nodes with an id of 3, you can use the descendant accessor (..) to match elements anywhere in the structure. root..node.(@id == "3") But if you need the category, then you need root..category.(@id == "4").node.(@id == "3") It's a little dense, but the e4x document from ECMA is the only comprehensive source I've found for how to use e4x in AS3: http://www.ecma-international.org/publications/standards/Ecma-357.htm Section 11 describes the accessors, if you decided to give it a look. HTH, Chris --- In [email protected], "chrislpigg" <[EMAIL PROTECTED]> wrote: > > I'm using Ex4 and am trying to recurse through an xml structure. Here > is my structure except on a much smaller scale. > > <root> > <set> > <category id="1"> > <node id="1"/> > <node id="2"/> > <node id="3"/> > <node id="4"/> > <node id="5"/> > </category > > <category id="2"> > <node id="1"/> > <node id="2"/> > <node id="3"/> > <node id="4"/> > <node id="5"/> > </category > > <category id="3"> > <node id="1"/> > <node id="2"/> > <node id="3"/> > <node id="4"/> > <node id="5"/> > </category > > <category id="4"> > <node id="1"/> > <node id="2"/> > <node id="3"/> > <node id="4"/> > <node id="5"/> > </category > > </set> > </root> > > How Could I grab only the node = "3" under category = "4" using EX4 > expression from the root node. Basically do a tree search without > having to drill down to the node level by using this code: > root.set.category.node(@id == "5") > > Is there some way that you can just use the root and do a search? >

