Thanks - actually I was able to convert those back like this.  The
.toXMLString method didn't work - but the basic .toString() did.

var x:XML = event.result as XML;
var s:String = x.XmlData.toString();
var formattedXML = new XML(s);


--- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> What is doing that encoding?  Trace the data flow to fnd out.
> 
>  
> 
> When saving XML strings, I usually encode them using escape() before
> sending, then unencode using unescape() after retreiving.  This way I
> can do:
> 
> var x:XML = XML(myStringXML); //OMIT the new. XML is a function, not a
> class
> 
>  
> 
> Tracy
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of djohnson29
> Sent: Thursday, May 29, 2008 6:12 PM
> To: [email protected]
> Subject: [flexcoders] converting xml string containing special
> characters back to regular xml
> 
>  
> 
> I have an xml variable that I need to store in my database as a
> string. So I've called .toXMLString() on the variable to turn it into
> a string and it's saved in the db. 
> 
> Now when it comes to loading that stored value back into a string
> variable , when I see the string representation of the xml it contains
> symbols instead of the angle brackets like so:
> 
> &lt;MyNode&gt;
> &lt;/MyNode&gt;
> 
> 
> How do I convert this back to XML?
> 
> I would like to so something like this:
> 
> var x:XML = new XML(myStringXML);
> 
> but this does not correctly format the xml or convert the angled
> brackets.
> 
> Can someone please point me in the right direction?
> 
> Thanks!
>


Reply via email to