Schema Intro
## What is XML Schema?
The purpose of XML Schema is to define the legal building blocks of an XML document, similar to DTD.
### XML Schema:
* Defines which elements can appear in the document
* Defines which attributes can appear in the document
* Defines which elements are child elements
* Defines the order of child elements
* Defines the number of child elements
* Defines whether an element is empty or can contain text
* Defines data types for elements and attributes
* Defines default and fixed values for elements and attributes
* * *
## XML Schema is the successor to DTD
We believe that XML Schema will soon replace DTD in most web applications.
### The reasons are as follows:
* XML Schema can be extended for future needs
* XML Schema is more comprehensive and powerful
* XML Schema is written in 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 the XML Schema standard in our "(#)."
YouTip