Using || (or) notation
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> [Bindable] public var xdata:XML = <order> <item id = "1"> <description>A</description> </item> <item id = "2"> <description>B</description> </item> </order>; </mx:Script> <mx:Label text="Using || (or) notation." /> <mx:List width="25%" dataProvider="{xdata.item.(@id=='1'||@id=='2').description}" /> </mx:Application>