Re: [PHP-XML-DEV] DTD being ignored?
[email protected] (Sander Roobol)
| Newsgroups | php.xml.dev |
|---|---|
| Message-ID | <20030607183606.GA16519@lxr> |
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