Atomic, List, Atomic Union and List Union Datatypes

This section describes categories of datatypes, Atomic, List, Atomic Union and List Union. And rules of using them to construct new datatypes with 'restriction', 'union' and 'list' components.

In the previous tutorials, we learned how to construct user-defined simple datatypes from built-in datatypes using "restriction", "union" and "list" components.

Of course, user-defined datatypes can be used in "restriction", "union" and "list" components to define more user-defined datatypes in a multiple-tier hierarchy. To help us understand datatype hierarchies and build them correctly, we need to divide simple datatypes into 4 categories:

With these categories defined above, we can list some rules that we need to follow when constructing new user-defined simple datatypes using the "restriction" component:

Similarly, we need to follow these rules when constructing new user-defined simple datatypes using the "union" component:

Similarly, we need to follow these rules when constructing new user-defined simple datatypes using the "list" component:

Table of Contents

 About This Book

 Introduction to XML Schema

 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 APIs

 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

 What Is Simple Datatype?

 "simpleType" Components - User-Defined Simple Datatypes

 "simpleType" Components with "restriction" Child Components

 "simpleType" Components with "union" Child Components

 "simpleType" Components with "list" Child Components

Atomic, List, Atomic Union and List Union Datatypes

 Constraining Facets on List Datatypes

 Constraining Facets on Union Datatypes

 Nested List Datatypes - Not Allowed

 Nested Atomic and List Union 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

 Archived Tutorials

 References

 Full Version in PDF/EPUB