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

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Data Model » XMLListCollectionScreenshots 
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
w_w__w__.j__a___v__a2__s___._c___o_m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.