Groups | Blog | Home
all groups > flash actionscript > march 2004 >

flash actionscript : XML problem - loading special characters


b-so
3/23/2004 9:49:47 PM
When I am loading XML data into my dynamic text boxes special characters are
being printed out in their escaped form.

For example, if my XML document says :
<tag>"blah"</tag>
the dynamic text box will print out :
&quot;blah&quot;

I've tried embedding font outlines.
I've tried putting "&quot;" into my XML document.

Is there some sort of actionscript command that will tell flash not to
translate these?

Thanks.

Brendan
Pluda
3/24/2004 12:39:52 AM
Hello,

I think that if your text field is html disabled this tags will apear as you want.

Cheers

johnlittlepeap NO[at]SPAM hotmail.com
3/24/2004 6:16:37 AM
[quoted text, click to view]

Hey Brendan

In your XML processing code, do you use something like
xmlObject.firstChild.toString(), or say,
xmlObject.firstChild.nodeValue. I've noticed that if you use the
nodeValue statment you will extrapolate the actual contents of the
node, toString() will actually convert the content. Hope this helps.

b-so
3/24/2004 4:00:02 PM
Hi Troot,

Thanks for your help. The problem was even more basic then that. I was using,
for example:

description.text = xml_object.firstChild;

rather than

description.text = xml_object.firstChild.nodeValue;

Thanks again!

Brendan
AddThis Social Bookmark Button