xs:sequence, xs:choice, xs:all
 

Figure 4.45. An xs:sequence in diagram

An xs:sequence in diagram

xs:sequence specifies that the child elements must appear in a sequence. Each child element can occur from 0 to any number of times. See more info at http://www.w3.org/TR/xmlschema-1/#element-sequence.

 

Figure 4.46. An xs:choice in diagram

An xs:choice in diagram

xs:choice allows only one of the elements contained in the declaration to be present within the containing element. See more info at http://www.w3.org/TR/xmlschema-1/#element-choice.

 

Figure 4.47. An xs:all in diagram

An xs:all in diagram

xs:all specifies that the child elements can appear in any order. Each child element can occur 0 or 1 time. See more info at http://www.w3.org/TR/xmlschema-1/#element-all.

The compositor graphical representation also contains the value for the minOccurs and maxOccurs properties (for 0..1 and 1..1 occurs the values are implied by the connector style) and the connectors to the compositor are drawn using dotted lines if the compositor is optional.

Table 4.12. xs:sequence, xs:choice, xs:all properties
Property NameDescriptionPossible ValuesMentions
CompositorCompositor type.sequence, choice, all.'all' is only available as a child of a group or complex type.
Min OccursMinimum occurrences of compositor.A numeric positive value. Default is 1.The property is not present if compositor is 'all' and is child of a group.
Max OccursMaximum occurrences of compositor.A numeric positive value. Default is 1.The property is not present if compositor is 'all' and is child of a group.
IDThe component id.Any IDFor all compositors.
ComponentThe edited component name.Not editable property.For all compositors.
System IDThe component system id.Not editable property.For all compositors.