XML Schema Validator (XSD)

Validate an XML document against an XSD 1.0 schema in your browser. Paste or open both files and inspect errors with line numbers and XML paths.

Included or imported schemas

Validation results

Provide an XML document and schema to check.

Validate an XML document against an XSD

Paste the XML and its main XML Schema Definition (XSD), or open UTF-8 files from your device. Select Validate XML to check whether elements, attributes, data types and namespaces match the schema. Validation runs in your browser.

Read validation errors

The results distinguish a malformed XML document, a schema that cannot be loaded, and a document that breaks a schema rule. Use the line number and XML path to find the affected element when they are available. Load the example and change 49.50 to unknown to see what happens when the schema expects a decimal.

Use includes and imports

The validator supports XSD 1.0. If the main schema refers to another file through xs:include or xs:import, expand Included or imported schemas and add the referenced files. Use relative filenames in the same folder, such as types.xsd. The validator resolves these references from the files you provide.