Complex Types
The discussion so far has focused on simple textual type definitions. While simple types are extremely useful, they are not nearly as expressive as complex type definitions. The XML Schema specification supports the definition of complex types that describe the content model and attribute inventory of a given class of element. A complex type definition fundamentally consists of a content model definition followed by a list of legal attributes. Like simple types, complex types can be named or anonymous and are associated with elements in the same manner, typically using an element declaration in the schema document. Unlike other schema components, complex types and simple types share a symbol space, which means it is illegal to have ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access