DOMDocument->schemaValidate

(no version information, might be only in CVS)

DOMDocument->schemaValidate --  Validates a document based on a schema.

Description

bool DOMDocument->schemaValidate ( string filename)

Validates a document based on a schema defined by filename.

See also DOMDocument->schemaValidateSource(), DOMDocument->relaxNGValidate(), DOMDocument->relaxNGValidateSource() and DOMDocument->validate().

r="#007700">->createElement("HEAD");
$head = $root->appendChild($head);
$title = $doc->createElement("TITLE");
$title = $head->appendChild($title);
$text = $doc->createTextNode("This is the title");
$text = $title->appendChild($text);
echo
"<PRE>";
echo
htmlentities($doc->saveXML());
echo
"</PRE>";
?>