Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

XML DOM - Validate XML


May 28, 2021 XML DOM


Table of contents


XML DOM validates the XML syntax


An XML error will stop your XML program

Errors in the XML documentation will stop your XML program.

The W3C XML specification states that if an error is found, the program should not continue to process the XML document. T he reason is that XML software should be easy to write and all XML documents should be compatible.

HTML make it possible to create documents with "errors" such as missing end tags. O ne of the main reasons HTML browsers are so large and incompatible is that they have their own way of understanding what a document should look like when they encounter an HTML error.

With XML, this should not be possible.


Verify your XML syntax

To help check your XML syntax, paste the XML code in the text area below and press the Verify XML button.




Verify your XML file

To check the syntax of the XML file, type the URL of the file in the input field below and press the Verify XML button.

Filename:


To verify an incorrect XML file, paste the following URL into the input field above www.w3cschool.cn/dom/cd_catalog.xml

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