Hi, I find the E4X expression language very powerful, and would like to leverage it to find elements in an xml document.
The problem is that I get the E4X expression at runtime, so I'm looking for a way to dynamically invoke the E4X expression. Something like: ------------------------------ var myXML:XML = <order> <item id='1'> <menuName>burger</menuName> <price>3.95</price> </item> <item id='2'> <menuName>fries</menuName> <price>1.45</price> </item> </order>; var expression:String = "item.(@id==2).menuName"; myXML.<something here?>(expression); ------------------------------ I first look for an eval function as in javascript, but found that AS3 does not provide such function any more. - Xavier