2 Replies Latest reply on Oct 19, 2009 11:00 AM by kabalweg

    E4X - Parsing XML.

    deepshar027

      Hey Guys,

       

      I am using HTTPService to hit a URL which returns me data in XML format.

      Now on HTTPService I have set the resultFormat to "e4x".

       

      <mx:HTTPService
              id="searchService"
              resultFormat="e4x"
              result="searchResultHandler(event);"
              fault="searchFaultHandler(event);"
          />

       

      Now in the searchResultHandler When I do an Alert.show(""+event.result) I see the response ,however there are some CDATA elements in that XML.

      e.g

       

      <QueryString><![CDATA[sdd]]></QueryString>

      <EMAIL_ID><![CDATA[abc@gmail.com]]></EMAIL_ID>

       

      I want to get rid of the stuff in Bold.Has anybody come across this issue?

       

      Thanks

      DS.