How to Link a Child Object to a Complex Type?

XML objects do not support standard link objects. To link a child object to a complex type, you must click the child object tool in the palette and then click the complex type symbol in the diagram. This will automatically create a link between both objects. See the following table for allowed links:

Tool

Action



If you click a complex type symbol with the Element tool, a sequence group particle and a child element symbol are created. You can modify the group particle via its property sheet





If you click a complex type symbol with the Any tool, a sequence group particle and an any symbol are created. You can modify the group particle via its property sheet





If you click a complex type symbol with the Group tool, a referencing group is created. You can modify the group particle via its property sheet. You must now select a group for the reference





If you click a complex type symbol with the Complex Type tool, a second complex type symbol is displayed superposed, but not linked, to the first complex type symbol. A complex type cannot be the child of another complex type



If you click a complex type symbol with the Sequence tool, a sequence group particle is displayed linked to the complex type symbol





If you click a complex type symbol with the Choice tool, a choice group particle is displayed linked to the complex type symbol





If you click a complex type symbol with the All tool, an all group particle is displayed linked to the complex type symbol



Note:

When you cannot click a symbol or an empty space in a diagram, the Pointer displays a forbidden sign (See complex type in Tool column). When there is a possibility to create a symbol above, below or next to another one, the Pointer displays an arrow indicating the corresponding direction (See element in Tool column).


Created October 7, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com