XML Validator: Check Well-Formed XML
Check that XML is well-formed and see the exact line and column of each error. Safe parsing with external entities disabled. Runs locally.
FreeRuns in your browser
XML Validator tool
Runs in your browser. External entities and DTDs are never loaded.
XML
About this tool
Check that an XML document is well-formed: every tag closed and correctly nested, attributes quoted and unique, entities valid, namespace prefixes declared and a single root element.
Errors show the exact line and column with a clear explanation, for example an end tag that doesn't match its start tag.
How to use it
- Paste XML or open a file.
- Press Check XML.
- Use Go to line to jump to the problem.
Limitations
- Well-formedness only; no DTD or XSD validation.
Example
<order id="1">
<item>Widget</item>
<price>9.99</cost>
</order>Not well-formed: End tag </cost> does not match start tag <price> (line 3) (line 3, column 14)Common use cases
Failing SOAP calls
Find the malformed element that makes a service reject a request.
Generated XML
Check XML produced by templates or mappings before sending it downstream.
Namespace problems
Spot prefixes that are used without being declared.