Creating an XMLList component to drive a List component
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:XMLList id="myXMLList"> <user id="1">A</user> <user id="2">B</user> </mx:XMLList> <mx:List dataProvider="{myXMLList}" /> </mx:Application>