note 47171 deleted from function.dom-domdocument-schemavalidate by didou
| From: | didou@php.net | Date: | Sat, 30 Dec 2006 03:29:23 +0000 |
| Subject: | note 47171 deleted from function.dom-domdocument-schemavalidate by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-121059@lists.php.net to get a copy of this message | ||
Note Submitter: gem at rellim dot com
----
Generates PHP WARNINGs if the schema is invalid.
Does not generate WARNINGs if the xml is invalid.
Here is a simple usage example:
<?php
$xml = new DOMDocument();
$xml->load('my.xml');
if ($xml->schemaValidate("my.xsd")) {
echo "Validated OK";
} else {
echo "Validate FAILED";
}
?>