I have a component that has a datagrid that is bound to an XMLList.

I want to be able to extract the ID column of the grid but not 
specifically hardcode the name of the XML node inside the component's 
code.  Sometimes this ID node value will be named differently.

eg.  <EmployeeID>, or <ManagerID>

I can parse an XMLList to get the value of the ID like so:

row = myXMLList[0];
var ID:String = myXMLList.(EmployeeID == _selectedRowID)); 

But instead of specifically naming "EmployeeID" inside the component, 
I would like to use a variable name here.

What is the e4x syntax to extract a node name instead of it's 
contents?





Reply via email to