by Eric van der Vlist is published by O'Reilly & Associates (ISBN: 0596004214)


Name

xsd:byte — Signed value of 8 bits

Synopsis

<xsd:simpleType name="byte" id="byte">
 <xsd:restriction base="xsd:short">
 <xsd:minInclusive value="-128"/>
 <xsd:maxInclusive value="127"/>
 </xsd:restriction>
</xsd:simpleType>

Derived from

xsd:short

Primary

xsd:decimal

Known subtypes

None

Data parameters (facets)

enumeration, fractionDigits, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern, totalDigits

Description

The value space of xsd:byte includes the integers between -128 and 127—the signed 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).

Example

Valid values for byte include 27, -34, +105, and 0.

Invalid values include 0A, 1524, and INF.


This text is released under the Free Software Foundation GFDL.