Chapter 2 XML Model Basics


How to link a child object to a parent object in an XML model?

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


Tool

Element symbol

Group symbol
Complex type symbol





Any








No link No link No link









All



Tool Sequence symbol Choice symbol All symbol





Any


No link



No link

No link No link No link



No link



No link

All
No link No link No link

WARNING! 

Caution
A group particle (sequence, choice, all) cannot be created from scratch in a diagram.
It must be the child element of an element, a group or a complex type.

For more information, see sections How to link a child object to an element, How to link a child object to a group particle, How to link a child object to a group of elements, How to link a child object to a complex type, in chapter Building an XML model.

 


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