Bind to Properties on XML by Using E4X
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"> <mx:Script> [Bindable] private var myData:XML = <items> <item id='1'> <name>Name 1</name> <type>Type 1</type> <description>Desc 1</description> </item> <item id='2'> <name>Name 2</name> <type>Type 2</type> <description>Desc 2</description> </item> <item id='3'> <name>Name 3</name> <type>Type 3</type> <description>Desc 3</description> </item> </items>; </mx:Script> <mx:Binding source="{myData..item.(@id == '1').name} {myData..item.(@id == '1').description.toLowerCase()}" destination="lab.text" /> <mx:Label id="lab" /> <mx:List width="200" dataProvider="{myData..item.name}" /> <mx:DataGrid width="200" dataProvider="{myData..item}"> <mx:columns> <mx:DataGridColumn dataField="name" /> <mx:DataGridColumn dataField="type" /> </mx:columns> </mx:DataGrid> </mx:Application>