XMLListCollection component wrapped around an XMLList
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"> <mx:XMLListCollection id="myMenuData"> <mx:XMLList> <menuitem label="File"> <submenu label="New" /> <submenu label="Open" /> </menuitem> </mx:XMLList> </mx:XMLListCollection> </mx:Application>