Simple and Complex Types : Introduction « XML Schema « XML Tutorial






Elements that can contain only text are simple type. 
Elements that contain other elements or that contain attributes are a complex type. 
Attributes are simple type.
There are several built-in simple types, like date, integer, and string. 
You can build custom simple types.
Elements of complex type describe the structure of a document, rather than its content. 
There are four basic kinds of complex types: 
    elements that contain just other elements,
    elements that contain both elements and text, 
    elements that contain only text
    elements that are empty. 
Each of these may contain attributes as well. 
Both simple and custom types may be named, which can be reused in other places.
Both simple and custom types may be anonymous, which are used only within the element in which the definition appears.








3.1.Introduction
3.1.1.Getting Started with XML Schemas
3.1.2.XML Schema defines the name vocabulary.
3.1.3. Declarations
3.1.4. element is the root element within an XML Schema.
3.1.5.Target Namespaces
3.1.6.Simple and Complex Types
3.1.7.Primitive Datatypes
3.1.8.Derived Datatypes
3.1.9.Useful built-in simple types
3.1.10.Create global complex types
3.1.11.Derivation by extension
3.1.12.Derivation by restriction