W3C

SequenceMinOccurs0MaxOccursUnbounded Example

  <xs:element name="durationListSequence" type="ex:DurationListSequence"/>

  <xs:complexType name="DurationListSequence">
        <xs:sequence minOccurs="0" maxOccurs="unbounded">
          <xs:element name="durationVal" type="xs:string"/>
          <xs:element name="durationPercentage" type="xs:string"/>
        </xs:sequence>
      </xs:complexType>

The example schema [SequenceMinOccurs0MaxOccursUnbounded.xsd] has been classified as being "" as it exhibits the following patterns:

Status Name XPath

To facilitate testing, the example schema element has been wrapped in the following descriptions:

The following valid instance documents are provided:

Instance Validity
SequenceMinOccurs0MaxOccursUnbounded101
SequenceMinOccurs0MaxOccursUnbounded102

  <ex:durationListSequence>
        <ex:durationVal>44</ex:durationVal>
        <ex:durationPercentage>33</ex:durationPercentage>
        <ex:durationVal>24</ex:durationVal>
        <ex:durationPercentage>45</ex:durationPercentage>
        <ex:durationVal>64</ex:durationVal>
        <ex:durationPercentage>22</ex:durationPercentage>
      </ex:durationListSequence>
  <ex:durationListSequence/>

This document was produced by the W3C XML Schema Patterns for Databinding Working Group. Comments on this document may be sent to the public public-xsd-databinding-comments@w3.org mailing list (public archive).

Generated from examples.xml $Date$