Re: the xml functions
| From: | J Wynia | Date: | Thu, 24 Oct 2002 13:03:47 +0000 |
| Subject: | Re: the xml functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-121252@lists.php.net to get a copy of this message | ||
Robert Samuel White wrote:
I am having a hard time understanding one of the features of the xml parser functions. If the string I am parsing includes or something similar, it encounters an error. I've read the docs and I don't understand how to have the parser process these. Any advice would be great.Basically, unless you've coded something to deal with them ampersands are the ultimate reserved word in XML. The easiest way to deal with them is to scrub them to   before they go through the XML parser. The "right" way to deal with them is to define as a valid entity in your DTD and make sure that all XML strings have a DTD when they are fed through the parser. J Wynia phpgeek.com