>>One of the fields I have looks like this. 
>><item>Field & Stream</item>. The issue is that the value I'm 
>>getting back from xpath is "Field &amp; Stream" and not 
>>"Field & Stream". 

Use this:

/*decodes any character entities in a string. For example, it converts
"&amp;" to "&". */
        
private function decodeEntities(entityString:String):String 
{
        var x:XML = new XML("<n>"+entityString+"</n>"); 
        x.parseXML();
        return x.firstChild.firstChild.nodeValue;
}

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

Reply via email to