![](/images/new-backgrounds/1214202/214202225x1.webp)
|
|
| Chapter 2 Building an XML model | |
Defining complex content properties | ||||
| A complex content allows you to extend or restrict the values of a complex | |||
| type with mixed content (character data and elements) or elements only. | |||
Complex content | The General page of a complex content property sheet displays the following | |||
general properties | 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 |
| An indicator of whether character data is allowed to appear | |
|
|
| between child elements of the complex type | |
|
|
|
|
|
To create a complex content:
1Select Complex in the Content dropdown listbox of a complex type property sheet.
2Click Apply.
3Click the Properties tool beside the Content dropdown listbox. The complex content property sheet appears.
4Type an ID for the complex content and check the Mixed box, if needed.
5 Click OK.
XSM User's Guide | 101 |