XML Schema Definition

An XML Schema Definition (XSD) is a file defining a particular set of data types and structural rules for a class of XML documents, which is itself expressed in XML form. The standard for it was adopted by the W3C (World Wide Web Consortium) in May, 2001. It was intended as a more flexible and extensible method of defining XML file format characteristics than the older method of using DTDs (Data Type Definitions), since a document can have only one DTD, but can have multiple XSDs to define namespaces used in the document.

DFDL (Data Format Definition Language) is a variety of XSD with additional annotations to specify particular (binary or text) data file formats in a file which can be of a non-XML variety, allowing arbitrary file formats to be mapped onto particular XML file formats encompassing their content and structure.

Specs

 * W3C XML Schema 1.0 Specification
 * XSD 1.0 Primer
 * XSD 1.0 Structures
 * XSD 1.0 Datatypes
 * Tools
 * W3C XML Schema 1.1 Specification
 * XSD 1.1 Structures
 * XSD 1.1 Datatypes

Example
 

              </xs:element>  </xs:element>  </xs:element>  </xs:element>  </xs:element>  </xs:element>  </xs:element>  </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>

Links

 * Wikipedia article
 * Open Directory Project page
 * XML Schema Validator