-<xqdoc:xqdoc>
-<xqdoc:module type="library">
<xqdoc:uri>http://exist-db.org/xquery/validation</xqdoc:uri>
-<xqdoc:comment>
<xqdoc:description>XML validation and grammars functions.</xqdoc:description>
</xqdoc:comment>
</xqdoc:module>
-<xqdoc:functions>
-<xqdoc:function>
<xqdoc:name>validate</xqdoc:name>
<xqdoc:signature>validation:validate($a as item()) xs:boolean</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Validate document specified by $a. $a is of type xs:anyURI, or a node (element or returned by fn:doc()). The grammar files are resolved using the global catalog file(s).</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>validate</xqdoc:name>
<xqdoc:signature>validation:validate($a as item(), $b as xs:anyURI) xs:boolean</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Validate document specified by $a using $b. $a is of type xs:anyURI, or a node (element or returned by fn:doc()). $b can point to an OASIS catalog file, a grammar (xml schema only) or a collection (path ends with '/')</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>validate-report</xqdoc:name>
<xqdoc:signature>validation:validate-report($a as item()) node()</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Validate document specified by $a. $a is of type xs:anyURI, or a node (element or returned by fn:doc()). The grammar files are resolved using the global catalog file(s). A simple report is returned.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>validate-report</xqdoc:name>
<xqdoc:signature>validation:validate-report($a as item(), $b as xs:anyURI) node()</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Validate document specified by $a using $b. $a is of type xs:anyURI, or a node (element or returned by fn:doc()). $b can point to an OASIS catalog file, a grammar (xml schema only) or a collection (path ends with '/') A simple report is returned.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>clear-grammar-cache</xqdoc:name>
<xqdoc:signature>validation:clear-grammar-cache() xs:integer</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Remove all cached grammers.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>show-grammar-cache</xqdoc:name>
<xqdoc:signature>validation:show-grammar-cache() node()</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Show all cached grammars.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
</xqdoc:functions>
</xqdoc:xqdoc>