Use our XML validator to syntax check your XML files.
Errors in XML documents can 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.
If you use HTML, it is possible to create a document that contains a lot of errors (for example, you forget the closing tag). One of the main reasons is that HTML browsers are quite bloated, have poor compatibility, and have their own ways of determining how a document should look when errors are found.
When using XML, this situation should not exist.
To help you syntax check your XML, we've created an XML validator.
Paste your XML into the text box below and click the "Validate" button to perform a syntax check.
Grammatically correct example:
<note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note>
Example of syntax error:
Note: Your XML will only be checked if it is "well-formed". If you want to validate XML against a DTD, see the last paragraph on this page.
If you are running Internet Explorer, you can validate your XML against the DTD in the text area below.
Just add the DOCTYPE declaration (with DTD) to your XML after the <xml> element and click the "Validate" button: