2 Replies Latest reply on Jul 14, 2006 4:11 PM by shyguychess

    Problem with pulling properties out of XML

    shyguychess
      Hi,

      I am sending a response to my Flex UI with an object that is cast as an XMLList.

      When I print it in a Alert box, this is what get on the screen:
      <record>
      <term>sdfsdfsd</term>
      <definition>sdfsdfds</definition>
      </record>
      <record>
      <term>sfdsdf</term>
      <definition>sdfsdf</definition>
      </record>
      <record>
      <term>ewerwer</term>
      <definition>werwer</definition>
      </record>
      <record>
      <term>vnvbnvb</term>
      <definition>vbnvbn</definition>
      </record>
      <record>
      <term>xxcvcxv</term>
      <definition>xcvcxv</definition>
      </record>
      <record>
      <term>yuiyuiyui</term>
      <definition>yuiyui</definition>
      </record>
      <record>
      <term>dfgfdgfdg</term>
      <definition>dgdffd</definition>
      </record>

      I tried to make the property of my datagrid --- dataprovider = "{this.javarequest.lastResult.glossary"}" but I get a run-time error that it cannot find the property glossary in my XMLList.

      What should I do to rectify this situation?

      Thanks.