XML Validator — Well-Formedness Check
Checks that XML is well-formed — every tag closed, closed in the right order, one root — and names the line and column of the first failure.
Loading the tool…
How to use this tool
- Paste the document you want checked.
- Select Check.
- If it fails, go to the reported line and column — with a missing close tag the report points at the tag that could not be matched, which is usually after the real mistake.
- Fix the first problem and check again. One error often hides several.
What xml validator does
XML has two different notions of correct, and confusing them wastes a lot of time. A document is well-formed when it obeys the syntax: one root element, every tag closed, tags closed in the order they were opened, attribute values quoted, and no bare ampersand or angle bracket in text. A document is valid when, on top of that, it matches a specific DTD or XSD — the right elements, in the right order, with the right types.
This tool checks the first of those. It is what you want when a parser has rejected a file outright and you need to know where, because a well-formedness error stops parsing dead and nothing downstream will run. Checking a document against a schema is a separate job and this tool does not do it, so a file that passes here can still be rejected by a system that holds it to an XSD.