XML Schema Built-In Simple Types |
Name |
Type |
Examples |
float |
IEEE 754 32-bit floating point number |
-INF, -1E4, -0, 0, 12.78E-2, 12, INF, NaN |
double |
IEEE 754 64-bit floating point number |
-INF, 1.401E-90,
-1E4, -0, 0, 12.78E-2, 12, INF, NaN, 3.4E42 |
decimal |
arbitrary precision, decimal numbers |
-2.7E400, 5.7E-444, -3.1415292, 0, 7.8, 90200.76, 3.4E1024 |
binary |
a binary number made up of zeroes and ones |
10000100111 |
integer |
an arbitrarily large or small integer |
-500000000000000000000000, -9223372036854775809, -126789, -1, 0, 1, 5, 23, 42, 126789,
9223372036854775808, 456734987324983264987362495809587095720978 |
nonPositiveInteger |
an integer less than or equal to zero |
0, -1, -2, -3, -4, -5, ... |
negativeInteger |
an integer strictly less than zero |
-1, -2, -3, -4, -5, ... |
long |
an eight-byte two's complement integer such as Java's
long type |
-9223372036854775808, -12678967543233, -1, 9223372036854775807 |
int |
an integer that can be represented as a four-byte,
two's complement number such as Java's int type |
-2147483648, -1, 0, 1, 5, 23, 42, 2147483647 |
short |
an integer that can be represented as a two-byte,
two's complement number such as Java's short type |
-32768, -1, 0, 1, 5, 23, 42, 32767 |
byte |
an integer that can be represented as a one-byte,
two's complement number such as Java's byte type |
-128, -1, 0, 1, 5, 23, 42, 127 |
nonNegativeInteger |
an integer greater than or equal to zero |
0, 1, 2, 3, 4, 5, ... |
unsignedLong |
an eight-byte unsigned integer |
0, 1, 2, 3, 4, 5, ...18446744073709551614, 18446744073709551615 |
unsignedInt |
a four-byte unsigned integer |
0, 1, 2, 3, 4, 5, ...4294967294, 4294967295 |
unsignedShort |
a two-byte unsigned integer |
0, 1, 2, 3, 4, 5, ...65534, 65535 |
unsignedByte |
a one-byte unsigned integer |
0, 1, 2, 3, 4, 5, ...254, 255 |
positiveInteger |
an integer strictly greater than zero |
1, 2, 3, 4, 5, 6, ... |