1 Reply Latest reply on Sep 22, 2006 11:39 AM by leotemp

    Getting nested data in the datagrid

    leotemp Level 1
      If my xml is in the form of multiple nested "nodes?" then how can i go about serilizing them and retrieving them properly?

      Example, if my xml looked like this:
      <data>
      <value>value1</value>
      <value>value2</value>
      <value>value3</value>
      </data>

      then displaying the value would be easy to do in my Datagrid, i would just say use "myHTTPservice.lastResult.data.value" and it would display in the grid but if my data is more complex like this:
      <data>
      <heading>
      <name>name1</name>
      </heading>
      <heading>
      <name>name2</name>
      </heading>
      <heading>
      <name>name\3</name>
      </heading>
      </data>

      How would I in theory go about serializing the say "name" into an array my datagrid could use? if i say the dataprovider is "myHTTPservice.lastResult.heading.name then i dont get an array, how do say i want all the names found in the heading to be put in an array? do have to do this manually on result from my HTTPservice and if so any pointers would be good! thank you!