note 47171 modified in function.dom-domdocument-schemavalidate by didou

From: Date: Sat, 02 Apr 2005 22:27:54 +0000
Subject: note 47171 modified in function.dom-domdocument-schemavalidate by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-87371@lists.php.net to get a copy of this message
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"; } ?> --was-- 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"; } ?> http://php.net/manual/en/function.dom-domdocument-schemavalidate.php

« previous php.notes (#87371) next »