Skip to main content
>_devtools

XSD Validator

Validate an XML document against an XSD schema with libxml2 running in your browser.

What it does

Validate an XML document against an XSD schema. Load the schema and document, then review each violation with its line number.

Example

Input: <order><quantity>0</quantity></order>
Schema rule: quantity must be a positive integer
Output: quantity is below the minimum value

Limits and behavior

  • Only XSD 1.0 is supported; XSD 1.1 assertions are not checked.
  • The schema must be self-contained. Imports and includes are not fetched.
  • The XML and schema together are limited to 2 MB. Validation runs locally in WebAssembly after you choose Validate.