0 Replies Latest reply on Oct 25, 2006 7:10 PM by JoeFree999999

    XML as data provider to Tree not being displayed

    JoeFree999999
      Have the following model and tree definitions. However the below XML file is not displayed in the tree.

      How is this accomplished?


      <mx:HTTPService id="catTreeXml" url="Categories.xml"/>
      <mx:Model id="tree"><gen>{catTreeXml.node.node.node.result}</gen></mx:Model>

      <mx:Tree xmlns:mx=" http://www.adobe.com/2006/mxml"
      dataProvider="{tree.gen}"
      rowHeight="25" height="100%" width="100%"
      iconField="@icon" labelField="@label"
      dragEnabled="true" dropEnabled="true" dragMoveEnabled="true"
      allowMultipleSelection="false"
      creationComplete="init();" useRollOver="true" dropShadowEnabled="true" fontFamily="Arial" fontWeight="bold">
      </mx:Tree>


      Categories.xml file is as follows:

      <?xml version="1.0"?>
      <list>
      <node label="Categoryies">
      <node label="Category 1">
      <node label="A" />
      <node label="B" />
      </node>
      <node label="Category 2">
      <node label="C" />
      <node label="D" />
      </node>
      </node>
      </list>