Latest web development tutorials

XML DOM - XML ​​validation

XML error will stop your XML program

XML document errors will stop your XML program.

W3C XML specification If errors are found, the program should not continue to handle XML documents. The reason is that XML software should be easy to write, and all XML documents should be compatible.

It is possible to create a document with the "wrong" (such as missing end tags) via HTML. HTML browser so huge and one of the main reasons is incompatible HTML errors encountered when they have their own ways to figure out in this document should look like.

Through XML, it should be impossible.


Verify your XML syntax

To help Check your XML syntax, paste the following XML code in the text area, and press "validate XML" button.




Verify your XML file

For syntax checking XML file, type the file input field in the following URL, press "validate XML" button.

file name:


In order to validate an XML file errors, please paste the following URL into the input field in the above: http: //www.w3cschool.cc/dom/cd_catalog.xml

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