2 Replies Latest reply on Apr 6, 2009 3:47 AM by PRIGENT

    search XML result in a tree

    PRIGENT

      I got a XML result from tree node like that but actually it's more complex.

       

       

      [ 1st Question ]

      i want to search a data from that result.

       

      ( return data value which have type="P" for the first )

       

      It must return 'AAAA'.

       

       

      [ 2nd Question ]

      If i didn't click a tree node, is there a way i can select any node by coding?

       

      then, i want to make a event dispatch from source which is selected.

       

      So that i can get a my wish data from tree.

       

       

      PLEASE HELP ME YOU GOSU!! Thx.

       

       

       

      <node label="1" data="A" type="W">
      <node label="1.1" data="AA" type="W">
        <node label="1.1.1" data="AAA" type="C">
         <node label="1.1.1.1" data="AAAA" type="P" />
        </node>
      </node>
      <node label="1.2" data="AB" type="W">
        <node labe="1.2.1" data="ABA" type="W">
         <node label="1.2.1.1 data="ABAA" type="C">
          <node label="1.2.1.1.1" data="ABAAA" type="P" />
          <node label="1.2.1.1.2" data="ABAAB" type="P" />
          <node label="1.2.1.1.3" data="ABAAC" type="P" />
         </node>
         <node label="1.2.1.2 data="ABAB" type="C">
          <node label="1.2.1.2.1" data="ABABA" type="P" />
          <node label="1.2.1.2.2" data="ABABB" type="P" />
          <node label="1.2.1.2.3" data="ABABC" type="P" />
         </node>
        </node>
      </node>
      <node label="1.3" data="AC" type="W">
        <node labe="1.3.1" data="ACA" type="W">
         <node label="1.3.1.1 data="ACAA" type="C">
          <node label="1.3.1.1.1" data="ACAAA" type="P" />
          <node label="1.3.1.1.2" data="ACAAB" type="P" />
          <node label="1.3.1.1.3" data="ACAAC" type="P" />
         </node>
        </node>
      </node>
      </node>