What Is XSD (XML Schema Definition)?

This section provides a quick description of what is XSD (XML Schema Definition) - a language to define rules to validate XML documents.

What is XSD (XML Schema Definition)? XSD (XML Schema Definition) is an XML schema language recommended by W3C (World Wide Web Consortium). An XML schema is a set of rules to which an XML document must conform in order to be considered 'valid' according to that schema. An XML schema language is a set of rules on how to write an XML schema.

The current version (last modification date: 5 April 2012) XSD is 1.1 Its specifications are divided into 2 parts and available at W3C web site: http://www.w3.org/XML/Schema:

Some quick notes on XSD 1.1:

The previous version (last modification date: October 28, 2004) XSD was called XML Schema 1.0. Its specifications are divided into 3 parts and available at W3C web site: http://www.w3.org/XML/Schema:

Last update: 2013.

Table of Contents

 About This Book

Introduction to XML Schema

What Is XSD (XML Schema Definition)?

 "Hello world!" Example of XSD

 XML Schema Processors

 XML Editor and Schema Processor - XMLPad

 Java API for XML Processing - JAXP

 JAXP - XML Schema (XSD) Validation

 Xerces2 Java Parser - Java API of XML Parsers

 Using Xerces2 Java API

 XML Schema Language - Basics

 Introduction of XSD Built-in Datatypes

 "string" and Its Derived Datatypes

 "decimal" and Its Derived Datatypes

 "dateTime" and Its Related Datatypes

 Miscellaneous Built-in Datatypes

 Facets, Constraining Facets and Restriction Datatypes

 "simpleType" - Defining Your Own Simple Datatypes

 Complex Element Declaration

 Identity-Constraints: unique, key and keyref

 Assertion as Custom Validation Rules

 XML Schema Location and Namespace in XML Documents

 Overriding Element Types in XML Documents

 Linking Multiple Schema Documents Together

 Glossary

 References

 PDF Printing Version