Hello all,

I have an XML parsing question that I've been trying to solve for a little
while now and I can't get it to work.  I have a PHP script that loads text
from an SQL db, formats it in an XML string and sends this string back to
Flash using the LoadVars.sendAndLoad("script.php") function.  This text that
I send can be pretty much anything, including "quotes" and <brackets> and I
cannot get Flash to read the XML properly.

I tried encoding the string as ASCII characters (" becomes &#34;) or using
XML encoding (" becomes &quot;), but since both these encodings use the
ampersand (&) and since LoadVars returns variables in the MIME format, the
ampersand is interpreted as the split between 2 variables.  Right now, I
managed to get the XML string intact to Flash using url-encoding (" becomes
%22), but Flash automatically decodes these symbols and I get an error when
I create an XML object using the string.

Is there a way to re-encode the string before creating an XML tree from it?
Is there a better way to do what I am trying to do?

Thanks for the help!

--
Elie Zananiri
http://www.prisonerjohn.com
http://www.digital-spa.com
_______________________________________________
[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