W3C

ChoiceMaxOccursFinite Example

  <xs:element name="choiceMaxOccursFinite" type="ex:ChoiceMaxOccursFinite"/>

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

The example schema [ChoiceMaxOccursFinite.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
ChoiceMaxOccursFinite01
ChoiceMaxOccursFinite02
ChoiceMaxOccursFinite03

  <ex:choiceMaxOccursFinite>
        <ex:choiceA>first</ex:choiceA>
        <ex:choiceB>second</ex:choiceB>
      </ex:choiceMaxOccursFinite>
  <ex:choiceMaxOccursFinite>
        <ex:choiceA>first</ex:choiceA>
        <ex:choiceA>second</ex:choiceA>
      </ex:choiceMaxOccursFinite>
  <ex:choiceMaxOccursFinite>
        <ex:choiceA>only</ex:choiceA>
      </ex:choiceMaxOccursFinite>

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$