Chapter 18 Working with XML


Choice & All

A choice allows you to display only one child in an instance of an element.

All allows you to display all the elements in the group once or not at all.

In PowerDesigner, you design a choice/all mostly as a sequence.

<xsd:element name="InternationalShipping">
 <xsd:choice>
  <xsd:element name="EuropeShipping" type="int"/>
  <xsd:element name="AfricaShipping" type="int"/>
  <xsd:element name="AsiaShipping" type="int"/>
 </xsd:choice>
</xsd:element>

 


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