PDA

View Full Version : Converting a String to an array or xml?


gamerscalling
07-27-2007, 03:29 PM
I am using a web service but the return is a string when it is formated like xml...
Is there a way to convert this string to be xml or an array?

Thank you.

Slowburn
07-27-2007, 05:42 PM
a Webservice will return an XML document. you should use E4X to tranverse the nodes.

Are you using toString() when your xml comes in?

gamerscalling
07-30-2007, 03:29 PM
No, The variable it would return by default was a string, I did a typeof and that was what it said.

But this fixed it all up.

var conXML:XML = new XML(wxDataString);


Now I know what to do and have a nice XML object I can use e4x on.