XML Validator
Check whether an XML document is well-formed and see the first error with its line number.
What is the XML Validator?
Well-formed XML has one root element, properly nested and closed tags, quoted attributes and escaped special characters.
How does it work?
The browser’s XML parser reports the first error it encounters. This checks well-formedness, not validation against an XSD schema.
Example
<title>Panchatantra</book> fails because the closing tag does not match.
Frequently asked questions
Is my data sent to a server?
No. This tool runs entirely in your browser; nothing you paste is uploaded or stored.
Does it validate against XSD or DTD?
No, only well-formedness. Schema validation requires the schema file and a validating parser.
Related tools
Enable JavaScript to use this calculator.