Chapter 3 Building XML Models


Complex Types (XSM)

You can only create complex types in a model targeted with XSD.

A complex type is a data type definition used to define attributes and child elements of a parent element. It is a template for a data type definition that can be reused and derived by extension or restriction.

A complex type has:


In the example above, HighDefinition is a global complex type, reused as data type for the deluxeTV element.

Generated schema:


WARNING! 

Caution
Global complex types appear in the model as objects, with their corresponding symbol in the diagram.
Local complex types only appear in the schema (see Preview tab of an element property sheet).

 


Copyright (C) 2007. Sybase Inc. All rights reserved.