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 sequence Element

The sequence element provides an XML representation of an ordered set of element types. For each element type associated with a sequence element in an XML schema document, there must be a corresponding element in the corresponding XML instance - in the same order. In fact, there may be zero or many elements for each element type depending upon the values of the minOccurs and maxOccurs attributes associated with the corresponding element types.
    <xsd:complexType name="baseCatalogEntryType"
                     abstract="true"
                     id="baseCatalogEntryType.catalog.cType">
        <xsd:annotation>
            <xsd:documentation xml:lang="en">
                A catalog entry must have:
                    * A database ID
                    * Part Name
                    * Part Number
                    * Options available
                    * Description
                    * Price
                    * Included Quantity when ordering
                      one item.
                The "baseCatalogEntryType" is
                non-instantiable:  a derived type must
                be created before a catalog
                entry can be instantiated.
                    -- Shorthand Notation --
            </xsd:documentation>
        </xsd:annotation>
        <xsd:sequence id="bacet-seq">
            <xsd:element ref="sequenceID"/>
            <xsd:element name="partName" type="partNameType"/>
            <xsd:element name="partNumber" type="partNumberType"/>
            <xsd:element name="partOption" type="partOptionType"/>
            <xsd:element name="description"
                         type="catalogEntryDescriptionType"/>
            <xsd:group ref="priceGroup"/>
            <xsd:element name="includedQuantity"
                         type="xsd:positiveInteger"/>
        </xsd:sequence>
        <xsd:attribute name="category"
                       type="categoryType"
                       use="required"/>
    </xsd:complexType>