Chapter 3 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 general properties

The General page of a complex content property sheet displays 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 An indicator of whether character data is allowed to appear between child elements of the complex type

Steps To create a complex content:

  1. Select Complex in the Content dropdown listbox of a complex type property sheet.
  2. Click Apply.
  3. Click the Properties tool beside the Content dropdown listbox.

    The complex content property sheet appears.
  4. Type an ID for the complex content and check the Mixed box, if needed.
  5. Click OK.

 


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