xsd:unsignedByte
The type xsd:unsignedByte
represents an integer between 0 and 255. An xsd:unsignedByte
is a sequence of digits, optionally preceded by a + sign. Leading zeros are permitted, but decimal points are not.
Simple Type Information
Namespace: http://www.w3.org/2001/XMLSchema
Schema Document: datatypes.xsd
Content
- Based on xsd:unsignedShort
- Minimum Inclusive: 0 (Defined in type xsd:nonNegativeInteger)
- Maximum Inclusive: 255
- 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 | |
Invalid values | Comment |
-123 | negative values are not allowed |
256 | number is too large |
3.0 | value must not contain a decimal point |
an empty value is not valid, unless xsi:nil is used |
Type Inheritance Chain
- xsd:anySimpleType
- restricted by xsd:decimal
- restricted by xsd:integer
- restricted by xsd:nonNegativeInteger
- restricted by xsd:unsignedLong
- restricted by xsd:unsignedInt
- restricted by xsd:unsignedShort
- restricted by xsd:unsignedByte
- restricted by xsd:unsignedShort
- restricted by xsd:unsignedInt
- restricted by xsd:unsignedLong
- restricted by xsd:nonNegativeInteger
- restricted by xsd:integer
- restricted by xsd:decimal