The int data type is derived from the long type. : int « XML Schema « XML Tutorial

Home
XML Tutorial
1.Introduction
2.Namespace
3.XML Schema
4.XPath
5.XSLT stylesheet
XML Tutorial » XML Schema » int 
3.23.1.The int data type is derived from the long type.
The value space is integer values from –2147483648 up to and including 2147483647. 
The lexical space is a finite-length sequence of decimal digits with an optional leading - or +.

<!-- schema -->
<xsd:element name="ninedigits">
  <xsd:simpleType>
   <xsd:restriction base="xsd:int">
    <xsd:totalDigits value="9"/>
   </xsd:restriction>
  </xsd:simpleType>
</xsd:element>
<!-- instance document -->
<ninedigits>217748364</ninedigits>
3.23.int
3.23.1.The int data type is derived from the long type.
3.23.2.specifies a sequence of zero to nine digits
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.