This chapter provides notes and tutorial examples on built-in datatypes defined in XML Schema 1.1. Topics include complete list of built-in datatypes, using built-in datatypes to declare XML elements and attributes; special built-in datatypes 'anyType', 'anySimpleType', 'anyAtomicType'.
There are 50 built-in datatypes supported in XSD 1.1.
4 new built-in datatypes are introduced in XSD 1.1: anyAtomicType, dateTimeStamp, dayTimeDuration and yearMonthDuration.
There are 3 special built-in types: anyType, anySimpleType and anyAtomicType,
which are acting like base datatypes for other built-in datatypes.
All built-in datatypes, except anyType, are simple types that can be used to declare both XML elements and attributes.
anyType is a complex type which can only be used to declare XML elements.
JDK 1.7 only supports XML Schema 1.0 (XSD 1.0) validation, not XSD 1.1.