XMLListCollection component sourcing XML
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical">
<mx:XML id="config">
<configData>
<appData>
<appName name="My Application" />
</appData>
<menuData>
<menuitem label="File">
<submenu label="New" />
<submenu label="Open" />
</menuitem>
</menuData>
</configData>
</mx:XML>
<mx:XMLListCollection id="myMenuData" source="{config.menuData.menuitem}" />
</mx:Application>
Related examples in the same category