XML DOM Validate XML syntax


XML errors will stop your XML program.

Errors in XML documents will stop your XML program.

The W3C XML specification stipulates that if an error is discovered, the program should not continue processing the XML document. The reason is that XML software should be easy to write, and all XML documents should be compatible.

With HTML, it is possible to create documents with "errors" (such as missing end tags). One of the main reasons HTML browsers are so large and incompatible is that when they encounter HTML errors, they each have their own way of figuring out what the document should have looked like.

With XML, this should be impossible.


Validate your XML syntax

To assist in checking your XML syntax, paste the XML code in the text area below and click the "Validate XML" button.




Validate your XML file

To check the syntax of an XML file, type the file's URL in the input field below and click the "Validate XML" button.

File name:


To validate an erroneous XML file, please paste the following URL into the input field above: http://www.w3cschool.cc/dom/cd_catalog.xml

Note:When you access this file, if an "Access denied" error is displayed, it is because your browser security settings do not allow cross-domain access.


other extensions