XML DOM tutoria...login
XML DOM tutorial
author:php.cn  update time:2022-04-13 15:27:56

DOM validation


XML DOM Validate XML syntax


XML errors will stop your XML program

In XML document The error 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 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 closing tags). One of the main reasons why HTML browsers are so huge and incompatible is that they all have their own way of figuring out what the document should look like when encountering an HTML error.

With XML, this shouldn't be possible.


Validate your XML syntax

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


Validate your XML file

To check the syntax of your XML file, type the URL of the file in the input field below and press Validate XML "Button.

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 an "Access denied" error is displayed when you access this file, it is because your browser security settings do not allow cross-domain access.


php.cn