schema check
load($xml_file)) die("Unable to find $xml_file "); if(!$xml_dom->schemaValidate($xsd_file)) die('Schema does not match XML file!'); if($xml_dom->schemaValidate($xsd_file)) print "Validated schema xsd file = $xsd_file against xml file = $xml_file "; ?>