The validate command
Validates the current document using the XSD schema(s) previously loaded using the
command, supplemented with any schema found via an
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.