XML Validator
Check XML syntax and validate XML against an XML Schema (XSD), privately in your browser.
example.xml
Paste XML, open a local file, or drag and drop a file into the editor.
example.xsd
Open one or more XSDs. The first file is the main schema; the others resolve xs:include / xs:import.
Working…
Shortcut: Ctrl + Enter (or ⌘ + Enter)
Validation results
ReadyThe example is ready. Select Validate to check the XML and XSD.
Standards & references
- XML 1.0: Defines the XML document syntax — W3C XML 1.0.
- XML Namespaces: Defines namespace-qualified element and attribute names — W3C Namespaces in XML.
- XML Schema: Defines XSD 1.0 validation rules and data types — W3C XML Schema Part 1 and Part 2.
- Validation engine: libxml2 xmllint compiled to WebAssembly for local XSD validation — xmllint-wasm.