W3C

ComplexTypeAll Example

  <xs:element name="complexTypeAll" type="ex:ComplexTypeAll"/>

  <xs:complexType name="ComplexTypeAll">
        <xs:all>
          <xs:element name="name" type="xs:string"/>
          <xs:element name="shade" type="xs:string"/>
          <xs:element name="length" type="xs:int"/>
        </xs:all>
        <xs:attribute name="id" type="xs:string"/>
        <xs:attribute name="inStock" type="xs:int"/>
      </xs:complexType>

The example schema [ComplexTypeAll.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
ComplexTypeAll01
ComplexTypeAll02

  <ex:complexTypeAll id="6026" inStock="232">
        <ex:name>Widget</ex:name>
        <ex:length>33</ex:length>
        <ex:shade>Light Blue</ex:shade>
      </ex:complexTypeAll>
  <ex:complexTypeAll inStock="332" id="6026">
        <ex:shade>Green</ex:shade>
        <ex:length>21</ex:length>
        <ex:name>Widget</ex:name>
      </ex:complexTypeAll>

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$