Re: PHP and XML Parsing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 & directly
- declare an & entity having the value &#x26 and write & in your
document

HTH
Ignatius
_________________________
----- Original Message -----
From: "Rick Dahl" <dmbserver@xxxxxxxxxxx>
To: <php-db@xxxxxxxxxxxxx>
Sent: Wednesday, November 26, 2003 16:33
Subject:  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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux