Re: DTD being ignored?

From: Date: Sat, 07 Jun 2003 19:01:22 +0000
Subject: Re: DTD being ignored?
References: 1 2  Groups: php.xml.dev 
Request: Send a blank email to php-xml-dev+get-125@lists.php.net to get a copy of this message
Ah ok, I do see that in the documentation. Any word on adding validation to the xml parsing routines? If I wanted validation, do I have any other options? Josh Sander Roobol wrote:
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


« previous php.xml.dev (#125) next »