This [[Module Library|XQuery Module]] contains functions to perform validations against DTDs, XML Schema and (since {{Version|8.3}}) RelaxNG. For Schematron validation, check out Vincent Lizzi’s [https://github.com/vincentml/schematron-basex Schematron XQuery Module].
=Conventions=
==validate:dtd-report==
{{Mark|Introduced with Version 8.3}}: {| width='100%'
|-
| width='120' | '''Signatures'''
=XML Schema Validation=
{{Mark|Updated with Version 8.3}}:
Checks whether an XML document validates against an XML Schema. The input document and the schema can be specified as:
==validate:xsd-report==
{{Mark|Introduced with Version 8.3}}:
{| width='100%'
=RelaxNG Validation=
{{Mark|Introduced with Version 8.3}}:
Checks whether an XML document validates against a RelaxNG schema. The input document and the schema can be specified as: