XML Validator
Use our XML validator to syntax-check your XML file.
XML errors will terminate your program
Errors in XML documents will terminate your XML application.
The W3C XML specification states that if an XML document contains errors, the program should not continue processing the document. The reason is that XML software should be lightweight, fast, and have good compatibility.
With HTML, it is possible to create documents containing many errors (for example, if you forget closing tags). One major reason is that HTML browsers are quite bloated and have poor compatibility, and they have their own way of determining how the document should appear when errors are found.
With XML, this situation should not exist.
Syntax-check your XML
To help you syntax-check XML, we have created an XML validator.
Paste your XML into the text box below, then click the "Validate" button to syntax-check it.
Example of correct syntax:
Example of syntax errors:
Note:It only checks whether your XML is "well-formed". If you want to validate XML against a DTD, please refer to the last paragraph on this page.
Validate XML against DTD
If you runInternet Explorer, you can validate your XML against a DTD in the text area below.
Simply add the DOCTYPE declaration (with the DTD) to the <xml> element in your XML, then click the "Validate" button:
Other extensions