W3C

ElementDefault Example

  <xs:element name="elementDefault" type="ex:ElementDefault"/>

  <xs:complexType name="ElementDefault">
        <xs:sequence>
          <xs:element name="element" type="xs:string" default="default"/>
        </xs:sequence>
      </xs:complexType>

The example schema [ElementDefault.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
ElementDefault01
ElementDefault02

  <ex:elementDefault>
        <ex:element>default</ex:element>
      </ex:elementDefault>
  <ex:elementDefault>
        <ex:element>wrong value</ex:element>
      </ex:elementDefault>

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$