XML Portal Tutorial: verify that XML is a legitimate XML

Source: Internet
Author: User
XML with accurate syntax is a well-formed XML. The XML verified by some DTD is a legitimate XML. A well-formed XML document. a "well-formed" XML document has an accurate syntax. A "W is good" XML document will follow the first few chapters

XML with accurate syntax is a well-formed XML.

The XML verified by some DTD is a legitimate XML.

Make up a good XML document

An XML document with a good structure has an accurate syntax.

A 'W constitutes a good 'XML document will follow the XML syntax rules described in the previous chapters:

  • XML documents must have root elements
  • XML documents must have closed labels
  • XML tags are case sensitive.
  • XML elements must be accurately nested
  • Quotation marks are required for XML attributes.
 
 
  
   Tove
  
  
   Jani
  
  
   Reminder
  Don't forget me this weekend!
 
Verify the XML document

A legitimate XML document is also subject to a DTD.

A legitimate XML document is an XML document with excellent composition. It also complies with the syntax rules of Document Type Definition (DTD:

 
 
  
   Tove
  
  
   Jani
  
  
   Reminder
  Don't forget me this weekend!
  
XML DTD

DTD defines the legitimate elements of an XML document.

The role of DTD is to define the proper construction module of the XML document. It applies a series of legitimate elements to define the document structure. You can learn more about the DTD and how to verify the XML document in our DTD Tutorial.

XML Schema

XML Schema is an XML-based DTD changer.

W3C supports a scale named XML Schema as an option to change the DTD. You can get more information about XML Schema in our XML Schema tutorial.

A common validators

To help you check the syntax of an XML file, we have created this tool so that you can check the syntax of any XML file.

XML solution to terminate your program

In the XML document, the error code is used to 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 easy to write and all XML documents should be compatible.

If HTML is used, it is possible to create a document containing a large number of errors (for example, you forgot an end tag ). One of the important 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 occurs.

Apply XML, which should not exist.

Check your XML syntax-only for IE browsers

To help you check the syntax of XML, we use Microsoft's XML parser to create an XML validator.

Paste your XML into the text box below, and then click "verify" to check the syntax.


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.