Add an XMLList to an XML Object
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"> <mx:Script> var xmlNode:XML = <data> <item id="1"/> <item id="2"/> <item id="3"/> </data> </mx:Script> </mx:Application>