Name
xs:nonNegativeInteger — Integers of arbitrary length positive or equal to zero.
Derived from:
xs:integer
Primary:
xs:decimal
Known subtypes:
xs:unsignedLong, xs:positiveInteger
Facets:
xs:enumeration, xs:fractionDigits, xs:maxExclusive, xs:maxInclusive, xs:minExclusive, xs:minInclusive, xs:pattern, xs:totalDigits, xs:whiteSpace
<xs:simpleType name="nonNegativeInteger" id="nonNegativeInteger">
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>
</xs:restriction>
</xs:simpleType>Description
The value space of xs:nonNegativeInteger includes
the set of all the integers greater than or equal to zero, with no
restriction of range. Its lexical space allows any number of
insignificant leading zeros.
Restrictions
The decimal point (even when followed only by insignificant zeros) is forbidden.
Example
Valid values include
"+123456789012345678901234567890",
"0", "0000000000000000000005",
or "2147483647".
Invalid values include "1." or
"-1.".
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access