
Chapter 3 Building XML Models
Specifying the type of content of a complex type
A complex type can contain either:
- simple content – character data or a simple type (but no elements), or
- complex content – elements or elements and character data
To specify the type of content of a complex type:
- Open the property sheet of a complex type and select either simple or complex in the Content list.
- Click Apply to make available the Properties tool to the right of the list.
- [optional] Click the Properties tool to open the property sheet of the content, and specify an ID and, in the case of complex content, whether the content can be mixed.
- Click OK to return to the diagram.
Content property sheet General tab
The General tab contains the following properties:
Property
|
Description
|
ID
|
ID for the complex content. Its value must be of type ID and unique within the model containing the complex content
|
Mixed [complex content only]
|
Specifies that character data is allowed to appear between child elements of the complex type.
|
Copyright (C) 2007. Sybase Inc. All rights reserved.
|
|