RE: [PHP] parsing XML data with ampersands (&)
| From: | Jon Haworth | Date: | Mon, 12 Nov 2001 16:17:07 +0000 |
| Subject: | RE: [PHP] parsing XML data with ampersands (&) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-74298@lists.php.net to get a copy of this message | ||
Change your CDATA so it contains & instead of &
HTH
Jon
-----Original Message-----
From: bill [mailto:bill@billtron.com]
Sent: 12 November 2001 15:51
To: php-general@lists.php.net
Subject: [PHP] parsing XML data with ampersands (&)
When parsing XML data, the CDATA sometimes contains an ampersand (&).
The XML parser sends this as two events, one before the ampersand and
one after. That yields two data sections (when there is only one).
Ideas on how to keep them together?
Is this a bug?
kind regards,
bill hollett
**********************************************************************
'The information included in this Email is of a confidential nature and is
intended only for the addressee. If you are not the intended addressee,
any disclosure, copying or distribution by you is prohibited and may be
unlawful. Disclosure to any party other than the addressee, whether
inadvertent or otherwise is not intended to waive privilege or confidentiality'
**********************************************************************