I would use someXML.localName()

Cheers

Jeremy

> 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?
>
>
>
>
>
>


Jeremy Tooley
Creative Director
We Made That Design Group Inc.
[EMAIL PROTECTED]
http://www.wemadethat.com
p: 403.668.0857
c: 403.836.3048

Reply via email to