The validate command

Syntax:

validate

Validates the current document using the XSD schema(s) previously loaded using the schema command, supplemented with any schema found via an xsi:schemaLocation or xsi:noNamespaceSchemaLocation attribute in the source document.

On completion, the validated result (complete with type annotations) becomes the new current document. Any expressions and queries executed against a typed document are treated as schema-aware.

If validation fails, the validation error messages are output, and the current document remains unchanged.