Chapter 3 Building an XML model


Creating a complex type

You can create a complex type:

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 .

Steps To create a complex type from the palette:

  1. Select the Complex Type tool in the palette.
  2. Click an empty space in the diagram.

    A complex type symbol appears in the diagram at the click position.
  3. Click the Pointer tool in the palette.

    or

    Right-click to recover the Pointer.
  4. Double-click the complex type symbol in the diagram.

    The complex type property sheet appears.
  5. Type a name and a code for the complex type.
  6. Click OK.
  7. Select a group particle tool in the palette (Sequence, Choice or All).
  8. Click the complex type symbol in the diagram.

    The group particle symbol appears attached to the complex type symbol.
  9. Select the Element tool in the palette.
  10. 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.
  11. Double-click a child element symbol to display its property sheet.
  12. Type a name and a code for the child element.
  13. Repeat steps 11 and 12 for each child element.
  14. Click OK.


 


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