Use an XMLListCollection object : XMLList « 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 » XMLListScreenshots 
Use an XMLListCollection object
Use an XMLListCollection object
         
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:XML id="capitals">
        <root>
            <Capitals label="A">
                <capital label="A1" value="value 1" />
                <capital label="A2" value="value 2" />
                <capital label="A3" value="value 3" />
            </Capitals>
            <Capitals label="B">
                <capital label="B1" value="value 4" />
                <capital label="B2" value="value 5" />
                <capital label="B3" value="value 6" />
            </Capitals>
        </root>
    </mx:XML>
    <mx:XMLListCollection id="capitalColl" source="{capitals.Capitals}" />
    <mx:Tree id="Tree2" dataProvider="{capitalColl}" labelField="@label" width="300" />
</mx:Application>

   
    
    
    
    
    
    
    
    
  
Related examples in the same category
1.Using an XMLList component to configure menu data
2.XMLListCollection component wrapped around an XMLList
3.Creating an XMLList component to drive a List componentCreating an XMLList component to drive a List component
4.Using XMLListUsing XMLList
5.Wrapping an XMLListCollection around an XMLList
6.Add an XMLList to an XML Object
7.Bind to an XMLList or an E4X QueryBind to an XMLList or an E4X Query
8.Filter and Sort an XMLListCollectionFilter and Sort an XMLListCollection
9.XMLListCollection With ListXMLListCollection With List
10.Time formatTime format
w_w_w___.j_a__v___a__2__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.