The group Element
The group element describes an element that encapsulates an
all element, a
choice element, or a
sequence element. Each group
may be referenced in many complex types.
<xsd:group name="priceGroup">
<xsd:annotation>
<xsd:documentation xml:lang="en">
A price is any one of the following:
* Full Price (with amount)
* Sale Price (with amount and authorization)
* Clearance Price (with amount and authorization)
* Free (with authorization)
</xsd:documentation>
</xsd:annotation>
<xsd:choice id="pg.choice">
<xsd:element name="fullPrice"
type="fullPriceType"/>
<xsd:element name="salePrice"
type="salePriceType"/>
<xsd:element name="clearancePrice"
type="clearancePriceType"/>
<xsd:element name="freePrice" type="freePriceType"/>
</xsd:choice>
</xsd:group>
|