Appendix A: The XSD Simple Types


The XML Schema Definition (XSD) language allows you to assign a type to any element in a schema instance document. This type can be one of the 47 built-in types (conceptual, primitive, and derived) covered here or a custom type. Custom types are derived from one of the built-in types or another custom type.

This appendix defines the value spaces for all 47 built-in types in the XML Schema specification (http://www.w3.org/TR/xmlschema-2/) and explains how they are related to each other and how new types can be derived from them.

Conceptual Types

At the top of the XSD type hierarchy is the type anyType. Every type, simple or complex, derives from anyType. The simple type anySimpleType, which derives directly from anyType, is the base from which the remaining 45 simple types derive. Types that derive directly from anySimpleType are known as primitive types. All other types, simple and complex, are known as derived types. Figure A-1 shows the relationship among the XSD conceptual types.


Figure A-1: The conceptual type hierarchy




Programming Microsoft. NET XML Web Services
Programming MicrosoftВ® .NET XML Web Services (Pro-Developer)
ISBN: 0735619123
EAN: 2147483647
Year: 2005
Pages: 172

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net