<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.domdocument.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'domdocument.schemavalidatesource.php',
    1 => 'DOMDocument::schemaValidateSource',
    2 => 'Validates a document based on a schema',
  ),
  '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',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="domdocument.schemavalidatesource" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">DOMDocument::schemaValidateSource</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">DOMDocument::schemaValidateSource</span> &mdash; <span class="dc-title">
   Validates a document based on a schema
  </span></p>

 </div>
 <div class="refsect1 description" id="refsect1-domdocument.schemavalidatesource-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>DOMDocument::schemaValidateSource</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$source</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$flags</code><span class="initializer"> = 0</span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Validates a document based on a schema defined in the given string.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-domdocument.schemavalidatesource-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">source</code></dt>
     <dd>
      <p class="para">
       A string containing the schema.
      </p>
     </dd>
    
    
     <dt><code class="parameter">flags</code></dt>
     <dd>
      <p class="para">
       A bitmask of Libxml schema validation flags. Currently the only supported value is <a href="libxml.constants.php" class="link">LIBXML_SCHEMA_CREATE</a>. Available since Libxml 2.6.14.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-domdocument.schemavalidatesource-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> on success or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on failure.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-domdocument.schemavalidatesource-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="domdocument.schemavalidate.php" class="methodname" rel="rdfs-seeAlso">DOMDocument::schemaValidate()</a> - Validates a document based on a schema. Only XML Schema 1.0 is supported.</span></li>
    <li><span class="methodname"><a href="domdocument.relaxngvalidate.php" class="methodname" rel="rdfs-seeAlso">DOMDocument::relaxNGValidate()</a> - Performs relaxNG validation on the document</span></li>
    <li><span class="methodname"><a href="domdocument.relaxngvalidatesource.php" class="methodname" rel="rdfs-seeAlso">DOMDocument::relaxNGValidateSource()</a> - Performs relaxNG validation on the document</span></li>
    <li><span class="methodname"><a href="domdocument.validate.php" class="methodname" rel="rdfs-seeAlso">DOMDocument::validate()</a> - Validates the document based on its DTD</span></li>
   </ul>
  </p>
 </div>

</div><?php manual_footer($setup); ?>