note 45880 added to function.dom-domdocument-validate

From: Date: Wed, 22 Sep 2004 12:50:19 +0000
Subject: note 45880 added to function.dom-domdocument-validate
Groups: php.notes 
Request: Send a blank email to php-notes+get-77149@lists.php.net to get a copy of this message
We do not need to validate XML stream against a DTD as argument in validate() method. If we call a $dom->validate() on a DomDocument we assume that the XML stream contains something like: <!DOCTYPE mystuff SYSTEM "http://nowhere.not/mystuff.dtd"> so that the validation can be successfully completed. If we call validate() AND <!DOCTYPE ...> is missing an exception will throw and validate() will return false. Otherwise validate() will run against the dtd and will return false if the XML strema won't be well-formed. Regards, StediS ---- Manual Page -- http://www.php.net/manual/en/function.dom-domdocument-validate.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45880 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45880&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45880&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#77149) next »