XML Schema Reference

Folder Left Edge Island Home Folder Right Edge
Folder Left Edge Components Online Reference Folder Right Edge
Folder Left Edge Text Page Complete Reference Folder Right Edge
Folder Left Edge Text Page W3C Recs Folder Right Edge
Folder Left Edge Examples Examples Folder Right Edge
Folder Left Edge ? Consulting & Training Folder Right Edge

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>