The share link contains your schema — share it only where you'd share the schema itself.
About the XML validator
XML is everywhere — configuration files, RSS and Atom feeds, SOAP payloads, document formats and XSD schemas themselves. This tool checks that an XML document is well-formed: every tag is closed and correctly nested, attributes are quoted, entities are valid, and there is exactly one root element. It uses your browser's native XML parser, so there's nothing to install and nothing is uploaded.
An XSD (XML Schema Definition) is itself an XML document, so you can paste an .xsd here too and check that the schema file is well-formed. When parsing fails, the validator surfaces the parser's error — typically with the location of the problem inside the message — so you can find the mismatched tag or stray character.
Note the scope: this page checks well-formedness and syntax — the document's own structure, with no schema involved. Validating an XML instance against an XSD schema, confirming the document obeys the rules a schema defines, is the XSD Validator. In practice many XSD-conformance problems start with malformed XML, so fixing well-formedness here first is the right first step.
XML validation FAQ
What's the difference between well-formed and valid XML?
Well-formed means the document obeys XML's syntax rules — properly closed and nested tags, quoted attributes, a single root element. Valid means it also conforms to a schema (a DTD or XSD) that defines which elements and attributes are allowed. This page checks well-formedness. For the second check — does this document obey that schema — use the XSD Validator at /validate/xsd/. For the distinction in full, see the guide Well-Formed vs Valid XML.
Is this the same as validating XML against an XSD?
No — they are different checks. This page checks syntax only; no schema is involved, and a document can be perfectly well-formed and still break every rule its schema defines. For conformance against a supplied schema, see the XSD Validator at /validate/xsd/.
Can I validate an XSD file?
Yes. An XSD is itself an XML document, so you can paste your .xsd and the validator will check that the schema file is well-formed XML — closed tags, correct nesting, valid entities and a single root. To check that the schema itself compiles as XSD 1.0, paste it into the XSD Validator at /validate/xsd/ and leave the document pane empty.
Are XML namespaces and the XML version declaration checked?
The parser reads the optional <?xml version="1.0"?> declaration and parses namespace-qualified names as part of well-formedness. It does not enforce that every namespace prefix is bound or resolve namespace URIs — that's part of schema-aware validation rather than well-formedness.