1 Reply Latest reply on Jul 21, 2011 8:51 PM by megharajdeepak

    How to manipulate xml structure?

    megharajdeepak Level 1

      Hi there,

      I have a xml data, which has this format when I read it first in flex via HTTPService:

       

      <items>
                  <item title="firstItemTitle>
                      <Feature title="Speed">
                          <Machines>
                              <Machine name="machine1">
                                  <Value>60m/s</Value>
                              </Machine >
                              <Machine name="machine2">
                                  <Value>50m/s</Value>
                              </Machine >
                          </Machines>
                      </Feature>
                      <Feature title="Automatic">
                          <Machines>
                              <Machine name="machine1">
                                  <Value>Yes</Value>
                              </Machine >
                              <Machine name="machine2">
                                  <Value>No</Value>
                              </Machine >
                          </Machines>
                      </Feature>
                  </item >

       

                   <item title="nextItemTitle">

                    .....

       

                  </item >

      </items>

       

      I want to manipulate this structure to be used in tree component, who's leaf would be replaced with a tabular structure(as shown in the attached image).

       

      treeView.png

       

      Can you kindly let me know how can this be achieved? Appreciate your help...

       

      Thanks in advance,

      Cheers!

      Deepak