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.
Character substitution, perhaps?
Use pipes | perhaps.
Then, in Flash...
myLoadedString.split(|).join(\);
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Thanks, that worked!
I actually XML-encoded the string in PHP using pipes instead of ampersands
and then converted the pipes back to ampersand in Flash once the string was
received. The conversion from XML-encoding to regular characters is done
automatically.
Betreff: Re: [Flashcoders] quotes in XML
Thanks, that worked!
I actually XML-encoded the string in PHP using pipes instead of ampersands
and then converted the pipes back to ampersand in Flash once the string
was
received. The conversion from XML-encoding to regular characters is done
I actually XML-encoded the string in PHP using pipes instead of ampersands
and then converted the pipes back to ampersand in Flash once the string
was
received. The conversion from XML-encoding to regular characters is done
automatically.
Another solution would be to use the XML object in
On 8/8/06, Elie Zananiri [EMAIL PROTECTED] wrote:
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
Does it HAVE to be a CDATA node in order to safely include double
quotes in an XML file?
Be nice if I could do the following, but it's obvious why it breaks:
item title=This is my String with quotes/
I'm using iso-8859-1 encoding in the XML, but I think UTF would be OK
too. I'm grabbing it
Does it HAVE to be a CDATA node in order to safely include
double quotes in an XML file?
Yes, to include any unescaped XML metacharacters, you must place them within
a CDATA block.
Be nice if I could do the following, but it's obvious why it breaks:
item title=This is my String with
PROTECTED] On Behalf Of Dave Watts
Sent: Tuesday, May 30, 2006 1:25 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Quotes in XML always require CDATA?
Does it HAVE to be a CDATA node in order to safely include
double quotes in an XML file?
Yes, to include any unescaped XML metacharacters
9 matches
Mail list logo