XML DOMValidate XML Syntax
XML Errors Will Stop Your XML Program
Errors in an XML document will stop your XML program.
The W3C XML specification states that if an error is found, the program should not continue processing the XML document. The reason behind this 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 they each have their own way of figuring out what the document should look like when encountering HTML errors.
With XML, this should be impossible.
Validate Your XML Syntax
To assist in checking your XML syntax, please paste your XML code in the text area below and press the "Validate XML" button.
Validate Your XML File
To check the syntax of an XML file, please type the file's URL in the input field below and press the "Validate XML" button.
File name:
To validate a faulty XML file, please paste the following URL into the input field above: http://www.w3cschool.cc/dom/cd_catalog.xml
Note: If you see an "Access denied" error when you access this file, this is because your browser's security settings do not allow cross-domain access.