3 Replies Latest reply on Nov 5, 2007 10:01 AM by ntsiii

    Trying to figure out how to use my xml with a tree component

    bitwyse Level 1
      Hi All,

      I am trying to use a tree control for the first time and having a bit of difficulty. I have a Domino server that will generate XML for a specific view of information. The view looks just like what a tree control would look like. I wish I could paste a screen print . . .

      It looks like this:
      +/- ...01/31/2007
      ..+/- Steven Rieger
      ..........Company Name...Project-Number...Task-Name.....Total-Hours...Sat...Sun...Mon...Tue...Wed...Thu...F ri

      The Date and Name are collapsible .

      When I get the generated xml it's got a lot of crazy information in there that I don't need. I'm hoping someone can look at the xml below and provide some insight into how to parse it to achieve the look above.

      Thanks for your help!!!!

      - <viewentry position="1.1" noteid="80000008" children="2" descendants="6" siblings="30">
      - <entrydata columnnumber="1" name="$16" category="true">
      <datetime>20071026</datetime>
      </entrydata>
      - <entrydata columnnumber="7" name="TSTotHours">
      <number>53.5</number>
      </entrydata>
      - <entrydata columnnumber="8" name="TSHours_1">
      <number>6</number>
      </entrydata>
      - <entrydata columnnumber="9" name="TSHours_2">
      <number>9</number>
      </entrydata>
      - <entrydata columnnumber="10" name="TSHours_3">
      <number>6.5</number>
      </entrydata>
      - <entrydata columnnumber="11" name="TSHours_4">
      <number>8</number>
      </entrydata>
      - <entrydata columnnumber="12" name="TSHours_5">
      <number>8</number>
      </entrydata>
      - <entrydata columnnumber="13" name="TSHours_6">
      <number>8</number>
      </entrydata>
      - <entrydata columnnumber="14" name="TSHours_7">
      <number>8</number>
      </entrydata>
      </viewentry>
      - <viewentry position="1.1.1" noteid="8000000C" children="2" descendants="2" siblings="2">
      - <entrydata columnnumber="2" name="$15" category="true">
      <text>Steven Rieger</text>
      </entrydata>
      - <entrydata columnnumber="7" name="TSTotHours">
      <number>40</number>
      </entrydata>
      - <entrydata columnnumber="8" name="TSHours_1">
      <number>0</number>
      </entrydata>
      - <entrydata columnnumber="9" name="TSHours_2">
      <number>4</number>
      </entrydata>
      - <entrydata columnnumber="10" name="TSHours_3">
      <number>4</number>
      </entrydata>
      - <entrydata columnnumber="11" name="TSHours_4">
      <number>8</number>
      </entrydata>
      - <entrydata columnnumber="12" name="TSHours_5">
      <number>8</number>
      </entrydata>
      - <entrydata columnnumber="13" name="TSHours_6">
      <number>8</number>
      </entrydata>
      - <entrydata columnnumber="14" name="TSHours_7">
      <number>8</number>
      </entrydata>
      </viewentry>
      - <viewentry position="1.1.1.1" unid="8625721300797D8686257383001826AE" noteid="B4E" siblings="2">
      - <entrydata columnnumber="3" name="$178">
      <number>0</number>
      </entrydata>
      - <entrydata columnnumber="4" name="TSPCompany">
      <text>101955 - Acme Company, Inc.</text>
      </entrydata>
      - <entrydata columnnumber="5" name="TSPProject">
      <text>P03036 - CAC 07/08</text>
      </entrydata>
      - <entrydata columnnumber="6" name="TSPTask">
      <text>10134 - Import from Access to Notes</text>
      </entrydata>
      - <entrydata columnnumber="7" name="TSTotHours">
      <number>24</number>
      </entrydata>
      - <entrydata columnnumber="8" name="TSHours_1">
      <text />
      </entrydata>
      - <entrydata columnnumber="9" name="TSHours_2">
      <text />
      </entrydata>
      - <entrydata columnnumber="10" name="TSHours_3">
      <text />
      </entrydata>
      - <entrydata columnnumber="11" name="TSHours_4">
      <text />
      </entrydata>
      - <entrydata columnnumber="12" name="TSHours_5">
      <number>8</number>
      </entrydata>
      - <entrydata columnnumber="13" name="TSHours_6">
      <number>8</number>
      </entrydata>
      - <entrydata columnnumber="14" name="TSHours_7">
      <number>8</number>
      </entrydata>
      </viewentry>