Binding XML data to Label
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> import mx.collections.XMLListCollection; </mx:Script> <mx:XML id="itemData" xmlns=""> <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> </items> </mx:XML> <mx:Binding source="{itemData..item.(@id == '1').name} {itemData..item.(@id == '1').description.toLowerCase()}" destination="lab.text" /> <mx:Label id="lab" /> </mx:Application>