What is XML Schema?

Source: Internet
Author: User
Tags valid

Spring 2.0 uses XML Schema, so what is XML schema?

The XML Schema describes the structure of the XML document. An XML document can be validated with a specified XML schema to check whether the XML document meets its requirements. The suffix name of the XML Schema file is ". XSD "

Note the difference between schema and XML Schema: schema or XML Schema refers to the schema of the XML document (i.e., document structure, data type, etc.), and XML Schema is one of the schemas. In addition to the XML Schema, DTD, RELAX ng is a schema. If this is true, then the XML document is called a valid (valid), otherwise it is non-valid (invalid). The document designer, the person writing the XML schema, can specify the structure and content allowed by an XML document through an XML schema, and can then check whether an XML document is valid. Whether or not an XML document is valid is always for a schema. For the same XML document, it is possible to use a schema to verify that it is valid, and another schema to test it is non-valid. ]

The structure and syntax of an XML Schema document is complex, itself an XML document, and must be a valid XML document that conforms to the XML Schema specification.

XML Schema 中文版 tutorial:http://www.w3schools.com/schema/default.asp

The XML schema is actually the same as the DTD, but more powerful than a DTD. XML schema vs. DTD comparison: http://www.ibm.com/developerworks/cn/xml/x-matters/part7/index.html

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.