XML data for Tree view : Tree Data « Components « Flex






XML data for Tree view

XML data for Tree view
      

<?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:Tree id="Tree1" dataProvider="{capitals}" labelField="@label" showRoot="false" width="300" />

</mx:Application>

   
    
    
    
    
    
  








Related examples in the same category

1.Reference XML attribute for tree dataReference XML attribute for tree data
2.Set dataProvider for Tree control through xml attributeSet dataProvider for Tree control through xml attribute
3.Using XML data models and use it as data for Tree controlUsing XML data models and use it as data for Tree control
4.Tree data is from XMLListCollectionTree data is from XMLListCollection
5.Use ActionScript to set up the data provider for Tree controlUse ActionScript to set up the data provider for Tree control
6.Fill XML data into Tree and get it back when selectedFill XML data into Tree and get it back when selected
7.AdvancedDataGrid with Grouping(A tree table).AdvancedDataGrid with Grouping(A tree table).
8.Tree uses an XMLListCollection object as the data source:Tree uses an XMLListCollection object as the data source:
9.Tree with static dataTree with static data
10.Hierarchical AdvancedDataGrid Tree Column(TreeTable)Hierarchical AdvancedDataGrid Tree Column(TreeTable)
11.Use an XML object and Tree controlUse an XML object and Tree control
12.Tree control and XMLListCollectionTree control and XMLListCollection
13.Build Tree from XMLListCollection
14.Search Tree node is to search XML with XPathSearch Tree node is to search XML with XPath
15.Build a tree out of an XML documentBuild a tree out of an XML document
16.Tree controls uses an XML object directlyTree controls uses an XML object directly
17.Create Tree object from XMLListCreate Tree object from XMLList
18.Tree with static valueTree with static value