5 Replies Latest reply on Nov 14, 2010 8:30 AM by Flex harUI

    convert xml inside of Flex

    goflashman Level 1
      Greetings,

       

      I am trying to convert xml inside of Flex to accomodate a tree control(No serverside access). The xml is poorly formatted. I have success in manipulating the xml for all other components but not the Tree. Im thinking I have to use e4x to manipulate this but have had no success in traversing this since everything has a field name.
      testInfo=evt.result..Row[0].Field[0].(@pos="1"); This will return 1925824867.

       

      Any pointers would be appreciated!

       

      Heres the abbreviated xml:
      <Report>
      <Row>
      <Field name = "FORM_DOC_ID" pos= "1">1925824867</Field>
      <Field name = "FORM_ID" pos= "2">149607</Field>
      <Field name = "EL_VALUES_FIELD36" pos= "52">EMEA</Field>
      <Field name = "EL_VALUES_FIELD37" pos= "53">Italy</Field>
      <Field name = "EL_VALUES_FIELD38" pos= "54">Raffineria di Milazzo</Field>
      <Field name = "EL_VALUES_FIELD39" pos= "55">Raffineria di Milazzo - UF</Field>
      <Field name = "EL_VALUES_FIELD40" pos= "56">BOO</Field>
      <Field name = "EL_VALUES_FIELD41" pos= "57">Drawing</Field>
      <Field name = "EL_VALUES_FIELD42" pos= "58">Manual</Field>
      <Field name = "EL_VALUES_FIELD43" pos= "59">3 Permeate</Field>
      <Field name = "EL_VALUES_FIELD44" pos= "60">Cut Sheet</Field>
      <Field name = "EL_VALUES_FIELD45" pos= "61">127994337101</Field>
      <Field name = "EL_VALUES_FIELD46" pos= "62">127994306101</Field>
      </Row>
      <Row>
      <Field name = "FORM_DOC_ID" pos= "1">1919309980</Field>
      <Field name = "EL_VALUES_FIELD35" pos= "51">34 Pure Water RO</Field>
      <Field name = "EL_VALUES_FIELD36" pos= "52">NAM</Field>
      <Field name = "EL_VALUES_FIELD37" pos= "53">USA</Field>
      <Field name = "EL_VALUES_FIELD38" pos= "54">ENTERY</Field>
      <Field name = "EL_VALUES_FIELD39" pos= "55">IPOINT ENERGY CENTER</Field>
      <Field name = "EL_VALUES_FIELD40" pos= "56">BOO</Field>
      <Field name = "EL_VALUES_FIELD41" pos= "57">Drawing</Field>
      </Row>
      </Report>