>>I came across this problem recently... Unless you use the
>>nodeValue property, the returned node will be escaped when
>>converted to string
Uh, yeah, I posted this earlier. It uses nodeValue to escape:
/*decodes any character entities in a string. For example, it converts
"&" to "&". */
function decodeEntities(entityString:String):String
{
var x:XML = new XML("<n>"+entityString+"</n>");
x.parseXML();
return x.firstChild.firstChild.nodeValue;
}
Just send that function your dirty string you got from the XML and it
should come back clean.
Jason Merrill
Bank of America
GT&O Learning & Leadership Development
eTools & Multimedia Team
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com