1 Reply Latest reply on Jul 6, 2009 3:56 PM by meghiddo

    need suggestion on how to handle tree getting data from xml

      I'm not even sure where to start with this, I have a web service storing xml. I neeed to build a tree using the xml from this web service. Here is an example of the xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <measurementProject>
       <projectId>exampleProject1</projectId>
       <name>exampleProject1</name>
       <permissions class="java.util.ArrayList">
       <projectPermission>
       <userId>exampleUser1</userId>
       <permission>admin</permission>
       </projectPermission>
       </permissions>
       <devices class="java.util.ArrayList">
       <projectDevice>
       <deviceId>exampleDevice1</deviceId>
       </projectDevice>
       </devices>
       <channels class="java.util.ArrayList">
       <projectChannel>
       <channelId>exampleChannel3</channelId>
       </projectChannel>
       </channels>
      </measurementProject>


      I need the root of the tree to be the tag and then device and channels to show up under the tree. I have looked throgh all the live demo stuff and the developer guide but I have overloaded myself with different info and I'm not sure how I should handle this.

      So can someone maybe tell me what examples to look at specifically or give me some tips.

      Right now I have code that goes through and for every project in the projectCollection it adds the project name to projectNameList, and the same for devices. But this leaves me with a loose collection of project names and devices, no ownership is shown.

      ANy ideas