Re: DTD being ignored?
| From: | Sander Roobol | Date: | Sat, 07 Jun 2003 18:36:06 +0000 |
| Subject: | Re: DTD being ignored? | ||
| References: | 1 | Groups: | php.xml.dev |
| Request: | Send a blank email to php-xml-dev+get-124@lists.php.net to get a copy of this message | ||
On Sat, Jun 07, 2003 at 02:35:15PM -0400, Joshua Ruppert wrote:
> I set up a dtd but the xml parser seems to be ignored. I have fields
> that are set to be required and others that are set to be straight
> character data (CDATA). If I remove the required field the the parse
> should fail, but doesn't. Also, the parser is trying to parse the cdata
> fields. I know this because if I create the xml with <![CDATA[my
> data]]>, instead of relying on the dtd, the fields go through just fine.
Are you using ext/xml? ext/xml is based on Expat which is a
non-validating parser so it ignores DTDs.
Sander