PDA

View Full Version : adding " to my XML???


zickan
04-23-2002, 02:55 PM
I'm still trying to learn all this XML stuff so here is another question:

I'm trying to assamble this line of output from flash:
<OBJECT ID="12345">myObjectName</OBJECT>

How do I get the " included in my xml var:

myXML = "<OBJECT ID=" + ????? + myIdVar + ????? + "> + .....

mad_A
04-23-2002, 03:11 PM
&quot;


other useful escape characters are -

&lt; = <
&gt; = >
&apos; = '

mad_A
04-23-2002, 03:13 PM
that's a bit mad - my reply was converted!

if you remove the spaces from the following -

& q u o t ;

you will have what you need.

&quot;

zickan
04-23-2002, 04:24 PM
Cool :)

Thanks!