The duration datatype represents a duration : duration « XML Schema « XML Tutorial

Home
XML Tutorial
1.Introduction
2.Namespace
3.XML Schema
4.XPath
5.XSLT stylesheet
XML Tutorial » XML Schema » duration 
3.11.1.The duration datatype represents a duration
<!-- schema -->
<xsd:element name="vacation">
  <xsd:simpleType>
   <xsd:restriction base="xsd:duration">
    <xsd:pattern value="P\d+D\d+H\d+M\d+S"/>
   </xsd:restriction>
  </xsd:simpleType>
</xsd:element>
<!-- instance document -->
<vacation>P10D2H30M45S</vacation>
3.11.duration
3.11.1.The duration datatype represents a duration
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.