Name
xsd:unsignedByte — Unsigned value of 8 bits
Synopsis
<xsd:simpleType name="unsignedByte” id="unsignedBtype"> <xsd:restriction base="xsd:unsignedShort"> <xsd:maxInclusive value="255"/> </xsd:restriction> </xsd:simpleType>
Derived from
xsd:unsignedShort
Primary
xsd:decimal
Known subtypes
None
Data parameters (facets)
enumeration, fractionDigits,
maxExclusive, maxInclusive,
minExclusive, minInclusive,
pattern, totalDigits
Description
The value space of xsd:unsignedByte is the range
of integers between 0 and 255—the unsigned values that can fit
in a word of 8 bits. Its lexical space allows an optional + sign and
leading zeros before the significant digits.
Restrictions
The lexical space doesn’t allow values expressed in other numeration bases (such as hexadecimal, octal, or binary).
The decimal point (even when followed only by insignificant zeros) is forbidden.
Example
Valid values include 255, 0,
+0000000000000000000005, and 1.
Invalid values include -1 and
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