Feeding the Tree XML data : XMLListCollection « Data Model « Flex






Feeding the Tree XML data

Feeding the Tree XML data
 
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:XMLListCollection id="myXMLCollection">
        <mx:XMLList id="myXML">
            <friends label="Friends">
                <friend label="A" />
                <friend label="B" />
                <friend label="C" />
            </friends>
            <families label="Family">
                <family label="S" />
                <family label="E" />
            </families>
        </mx:XMLList>
    </mx:XMLListCollection>
    <mx:Tree dataProvider="{myXMLCollection}" labelField="@label" width="300" height="200" />
</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.XMLListCollection component sourcing XML