The XML validator checks that the document is well-formed: one root element, tags closed in order, quoted and unique attributes, escaped “&”, valid comments and declared namespace prefixes. When something fails it shows the line and column.
How to use it
- Paste the XML.
- Press Run.
- Use “Go to error” to jump to the reported position.
Example
<order id="42">
<item sku="A-1">Teclado</item>
<item sku="B-2">Ratón</items>
</order> Error (line 3, column 24): Closing tag </items> does not match <item>. Limitations
- No DTD or XSD validation: well-formed XML may still violate your application’s schema.
- Documents with a DOCTYPE are rejected for security.
FAQ
- What is the difference between “well-formed” and “valid”?
- Well-formed means it follows XML syntax. Valid also means it matches a schema (DTD or XSD), which this tool does not check.
- Are schemas or namespaces downloaded?
- No. Namespace URIs are just identifiers and the tool makes no requests.