A RESTful browser for eXist Java-Based Function Modules


http://exist-db.org/xquery/validation
A module for XML validation and grammars functions.

validation:jaxp($instance as item(), $cache-grammars as xs:boolean) xs:boolean
Validate document by parsing $instance. Optionally grammar caching can be enabled. Supported grammars types are '.xsd' and '.dtd'.
$instanceThe document referenced as xs:anyURI, a node (element or result of fn:doc()) or as a Java file object.
$cache-grammarsSet the flag to true() to enable grammar caching.

Returns true() if the document is valid and no single problem occured, false() for all other conditions. For detailed validation information use the corresponding -report() function.

validation:jaxp($instance as item(), $cache-grammars as xs:boolean, $catalogs as item()*) xs:boolean
Validate document by parsing $instance. Optionally grammar caching can be enabled and an XML catalog can be specified. Supported grammars types are '.xsd' and '.dtd'.
$instanceThe document referenced as xs:anyURI, a node (element or result of fn:doc()) or as a Java file object.
$cache-grammarsSet the flag to true() to enable grammar caching.
$catalogsThe catalogs referenced as xs:anyURI's.

Returns true() if the document is valid and no single problem occured, false() for all other conditions. For detailed validation information use the corresponding -report() function.
Return to list of all modules