XML technologies / XML Schema / Data type reference / xs:unsignedLong

(Excerpt from “XML Schema” by Eric van der Vlist)

Unsigned 64-bit integers

Derived from: xs:nonNegativeInteger

Primitive type: xs:decimal

Known subtypes: xs:unsignedInt

Facets: xs:enumeration, xs:fractionDigits, xs:maxExclusive, xs:maxInclusive, xs:minExclusive, xs:minInclusive, xs:pattern, xs:totalDigits, xs:whiteSpace

Definition

<xs:simpleType name="unsignedLong" id="unsignedLong">
    <xs:restriction base="xs:nonNegativeInteger">
        <xs:maxInclusive value="18446744073709551615"/>
    </xs:restriction>
</xs:simpleType>

Description

The value space of xs:unsignedLong consists of integers from 0 to 18446744073709551615, the unsigned values fitting in a 64-bit word. The lexical space permits an optional + sign and leading zeros before significant digits.

Restrictions

A decimal point is forbidden, even when followed only by insignificant zeros.

Example

Valid values include "18446744073709551615", "0", "+0000000000000000000005" or "1".

Invalid values include "-1" and "1.".

   

 

 

 

back to top