1 Reply Latest reply on Apr 29, 2007 5:22 AM by Ashish Mishra

    How to reterive the elements value from the xml list.

    Ashish Mishra
      Hi frens,
      In my application i am requesting some data which is i m getting in the xml format like this:

      public function httpResult():void{
      var xml:XML = new XML(httpLogin.lastResult);

      Alert.show("Result is "+xml.toXMLString());
      }

      The data is in format <out>fail</out> or <out>success</out>. Also Tell me if I m getting some data in following formm then how can i access particular element value.
      <result>
      <row>
      <msgid>1</msgid>
      <msg>hi</msg>
      </row>

      <row>
      <msgid>1</msgid>
      <msg>hi</msg>
      </row>

      <row>
      <msgid>1</msgid>
      <msg>hi</msg>
      </row>

      <row>
      <msgid>1</msgid>
      <msg>hi</msg>
      </row>

      <row>
      <msgid>1</msgid>
      <msg>hi</msg>
      </row>
      <status>success</success>
      </result>

      Here how can i access each element value, When I have
      var xml:XML = new XML(httpLogin.lastResult);
      how can i access each element using xml variable.

      Thks in advance frens,
      Ashish