W3C

ChoiceMaxOccursUnbounded Example

  <xs:element name="choiceMaxOccursUnbounded" type="ex:ChoiceMaxOccursUnbounded"/>

  <xs:complexType name="ChoiceMaxOccursUnbounded">
        <xs:choice maxOccurs="unbounded">
          <xs:element name="choiceA" type="xs:string"/>
          <xs:element name="choiceB" type="xs:string"/>
        </xs:choice>
      </xs:complexType>

The example schema [ChoiceMaxOccursUnbounded.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
ChoiceMaxOccursUnbounded01
ChoiceMaxOccursUnbounded02
ChoiceMaxOccursUnbounded03

  <ex:choiceMaxOccursUnbounded>
        <ex:choiceB>1st</ex:choiceB>
        <ex:choiceB>2nd</ex:choiceB>
        <ex:choiceB>3rd</ex:choiceB>
      </ex:choiceMaxOccursUnbounded>
  <ex:choiceMaxOccursUnbounded>
        <ex:choiceA>first</ex:choiceA>
        <ex:choiceA>second</ex:choiceA>
      </ex:choiceMaxOccursUnbounded>
  <ex:choiceMaxOccursUnbounded>
        <ex:choiceA>1st</ex:choiceA>
        <ex:choiceB>second</ex:choiceB>
        <ex:choiceA>3rd</ex:choiceA>
      </ex:choiceMaxOccursUnbounded>

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$