XML Schema Tutorial

XML Schema is an XML-based replacement for DTD.

XML Schema can describe the structure of XML documents.

The XML Schema language can also be referred to as XSD (XML Schema Definition).

The basic knowledge you should have

Before continuing your study, you need to have a basic understanding of the following knowledge:

  • HTML / XHTML
  • XML and XML namespaces
  • Basic understanding of DTD

If you want to learn these projects first, please Home page Access these tutorials.

What is XML Schema?

The role of XML Schema is to define the legal building blocks of XML documents, similar to DTD.

XML Schema:

  • Define the elements that can appear in the document
  • Define the attributes that can appear in the document
  • Define which element is a child element
  • Define the order of child elements
  • Define the number of child elements
  • Define whether an element is empty or can contain text
  • Define the data types of elements and attributes
  • Define the default and fixed values of elements and attributes

XML Schema is the successor to DTD

We believe that XML Schema will soon replace DTD in most network applications.

The reasons are as follows:

  • XML Schema can be extended to meet future needs
  • XML Schema is more comprehensive and powerful
  • XML Schema is written based on XML
  • XML Schema supports data types
  • XML Schema supports namespaces

XML Schema is a W3C Standard

XML Schema became a W3C standard on May 2, 2001.

You can find more information about ourW3C TutorialsGet more information about the XML Schema standard.>