XML Schema
Introduction
An effort to redress many of the
DTD deficiencies resulted in a more sophisticated schema language, XML Schema.
Among the benefits that XML Schema offers over DTDs are:
- Allows user-defined types to be created
- Allows the text that appears in elements to be constrained to specific types
- Allows types to be restricted (e.g. specifying max and min)
- Allows complex types to be extended (inheritance)
- Allows uniqueness and foreign key constraints
- Allows different parts of a document to conform to different schema
- It is itself specified by XML syntax
Links