xsd:byte
The type xsd:byte
represents an integer between -128 and 127. An xsd:byte
is a sequence of digits, optionally preceded by a + or - sign. Leading zeros are permitted, but decimal points are not.
Simple Type Information
Namespace: http://www.w3.org/2001/XMLSchema
Schema Document: builtintypes.xsd
Content
- Based on xsd:short
- Minimum Inclusive: -128
- Maximum Inclusive: 127
- Fraction Digits: 0 (Defined in type xsd:integer)
- Pattern: [\-+]?[0-9]+ (Defined in type xsd:integer)
- White Space: collapse (Defined in type xsd:decimal)
Examples
Valid values | Comment |
---|---|
+3 | |
122 | |
0 | |
-123 | |
Invalid values | Comment |
130 | number is too large |
3.0 | value must not contain a decimal point |
an empty value is not valid, unless xsi:nil is used |