array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'domdocument.schemavalidatesource.php', 1 => 'DOMDocument::schemaValidateSource', ), 'up' => array ( 0 => 'class.domdocument.php', 1 => 'DOMDocument', ), 'prev' => array ( 0 => 'domdocument.schemavalidate.php', 1 => 'DOMDocument::schemaValidate', ), 'next' => array ( 0 => 'domdocument.validate.php', 1 => 'DOMDocument::validate', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/dom/domdocument/schemavalidatesource.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5, PHP 7, PHP 8)
DOMDocument::schemaValidateSource — Validates a document based on a schema
Validates a document based on a schema defined in the given string.
source
A string containing the schema.
flags
A bitmask of Libxml schema validation flags. Currently the only supported value is LIBXML_SCHEMA_CREATE. Available since Libxml 2.6.14.