Re: PHP and XML Parsing

From: Date: Wed, 26 Nov 2003 15:48:29 +0000
Subject: Re: PHP and XML Parsing
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-31768@lists.php.net to get a copy of this message
If your "&" is meant as a content data, as opposed to an entity call, then your XML is probably not valid. To write "&" as a character, you can either: - use &#x26; directly - declare an &amp; entity having the value &#x26 and write &amp; in your document HTH Ignatius _________________________ ----- Original Message ----- From: "Rick Dahl" <dmbserver@hotmail.com> To: <php-db@lists.php.net> Sent: Wednesday, November 26, 2003 16:33 Subject: [PHP-DB] PHP and XML Parsing I have a piece of xml that has characters like & and other non-normal ones. When I use the $this->parser = xml_parser_create(); functions it doesn't read the entire character sting inside the <tag></tag>. It stops at the &. If I take out the & it works perfectly. Any ideas on how I can fix this? Rick

« previous php.db (#31768) next »