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

    XML as data provider to Tree not being displayed

      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"
      rowHeight="25" height="100%" width="100%"
      iconField="@icon" labelField="@label"
      dragEnabled="true" dropEnabled="true" dragMoveEnabled="true"
      creationComplete="init();" useRollOver="true" dropShadowEnabled="true" fontFamily="Arial" fontWeight="bold">

      Categories.xml file is as follows:

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