
Chapter 3 Building an XML model
Creating a complex type
You can create a complex type:
- From the palette
- From the Browser tree view
- From the List of Complex Types in the Model menu
For more information on the different ways to create a complex type, see section Creating an object in chapter Managing objects of the General Features Guide
.
To create a complex type from the palette:
- Select the Complex Type tool in the palette.
- Click an empty space in the diagram.
A complex type symbol appears in the diagram at the click position.
- Click the Pointer tool in the palette.
or
Right-click to recover the Pointer.
- Double-click the complex type symbol in the diagram.
The complex type property sheet appears.
- Type a name and a code for the complex type.
- Click OK.
- Select a group particle tool in the palette (Sequence, Choice or All).
- Click the complex type symbol in the diagram.
The group particle symbol appears attached to the complex type symbol.
- Select the Element tool in the palette.
- Click the group particle symbol in the diagram for each child element you want to create.
The child element symbols appear attached to the group particle symbol.
- Double-click a child element symbol to display its property sheet.
- Type a name and a code for the child element.
- Repeat steps 11 and 12 for each child element.
- Click OK.
Copyright (C) 2005. Sybase Inc. All rights reserved.
|
|