1 Reply Latest reply on Aug 3, 2007 3:39 PM by ntsiii

    Tree from XML

    NumberNineteen
      I have a tree control that is rendered from an xml file with the following format:
      .....
      <element name="textnode1">value here</element>
      <element name="groupnode1">
      .....<element name="item">
      ..........<element name="itemnode1">value here</element>
      ..........<element name="itemnode2">value here</element>
      ..........<element name="itemnode3">value here</element>
      .....</element>
      </element>
      <element name="textnode1">value here</element>
      .....

      Using a simple labeling function, I render the tree nodes for each "element" labeling them with the "name" attribute. But, by default behavior, the tree also renders each node value ("value here") as a child of the "element" node.

      How can I tell the tree control to ignore the node values and only render tree nodes from the "element" nodes in the XML?