The dateTime data type represents a specific time and date : dateTime « XML Schema « XML Tutorial

Home
XML Tutorial
1.Introduction
2.Namespace
3.XML Schema
4.XPath
5.XSLT stylesheet
XML Tutorial » XML Schema » dateTime 




<!-- schema -->
<xsd:element name="time_of_birth">
  <xsd:simpleType>
   <xsd:restriction base="xsd:dateTime">
    <xsd:enumeration value="1950-06-25T04:15:00"/>
    <xsd:enumeration value="1988-12-14T21:30:05"/>
   </xsd:restriction>
  </xsd:simpleType>
</xsd:element>
<!-- instance document -->
<time_of_birth>1950-06-25T04:15:00</time_of_birth>














3.8.dateTime
3.8.1.The dateTime data type represents a specific time and date
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.