XMLListCollection component sourcing XML : XMLListCollection « Data Model « Flex






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

1.Stock data wrapped in XML and referenced by XMLListCollectionStock data wrapped in XML and referenced by XMLListCollection
2.Feeding the Tree XML dataFeeding the Tree XML data