XML validator XML error will terminate your program

Source: Internet
Author: User

Errors in the XML document will terminate your XML program.
W3C XML specification Declaration: If the XML document has errors, the program should not continue to process this document. The reason is that the XML software should be lightweight, fast, and compatible.
If HTML is used, it is possible to create a document containing a large number of errors (for example, you forgot the end tag ). One of the main reasons is that HTML browsers are quite bloated and have poor compatibility, and they have their own methods to determine what the document should look like when an error is found.
When using XML, this situation should not exist.
Check your XML syntax
To help you check the XML syntax, we have created an XML validator.
Paste your XML into the text box below and click "verify" to check the syntax.

 
Check the syntax of your XML file
You can check the syntax of an online XML file by entering the URL of the XML file in the following input box and clicking "verify:
File Name:
Note: If the returned error is "Access Denied", your browser security settings do not allow cross-origin file access.
The file "note_error.xml" is used to demonstrate browser error handling. To return error-free messages, replace the file with other files, such as "books. xml ".
Verify XML based on DTD
You just need to add the DOCTYPE declaration to your XML file, and then click the Verify button:

 
Note: XML can be verified by DTD only in Internet Explorer. Firefox, Mozilla, Netscape, and Opera cannot do this.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.