W3C

DateTimeAttribute Example

  <xs:element name="dateTimeAttribute" type="ex:DateTimeAttribute"/>

  <xs:complexType name="DateTimeAttribute">
        <xs:sequence>
          <xs:element name="text" type="xs:string" minOccurs="0"/>
        </xs:sequence>
        <xs:attribute name="dateTime" type="xs:dateTime"/>
      </xs:complexType>

The example schema [DateTimeAttribute.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
DateTimeAttribute01
DateTimeAttribute02
DateTimeAttribute03
DateTimeAttribute04
DateTimeAttribute05
DateTimeAttribute06

  <ex:dateTimeAttribute dateTime="2006-10-26T04:51:00-05:42"/>
  <ex:dateTimeAttribute dateTime="2006-10-26T04:51:00+03:00"/>
  <ex:dateTimeAttribute dateTime="2006-10-26T04:51:00Z"/>
  <ex:dateTimeAttribute dateTime="2038-12-12T23:59:59"/>
  <ex:dateTimeAttribute dateTime="0739-04-04T04:51:00"/>
  <ex:dateTimeAttribute dateTime="10739-04-04T04:51:00"/>

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$