<code>$schema</code> can be used to specify the schema for validation. If no schema is given, <code>$input</code> is required to contain an <code>xsi:(noNamespace)schemaLocation</code> as defined in [http://www.w3.org/TR/xmlschema-1/#xsi_schemaLocation W3C XML Schema].<br />
|-
| valign='top' | '''ExceptionsErrors'''| Todo'''[[XQuery Errors#Functions Errors|0023]]''' is raised if the addressed validation fails.
|-
| valign='top' | '''Examples'''