XML schema datatypes fall into one of two categories: primitive or derived. A derived data type is created by extending an existing primitive or extended data type. For example, xsd:integer is a built-in derived type that is derived from the built-in primitive data type xsd:decimal (xsd:integer is an xsd:decimal with the fractionDigits facet set to 0).
| XSD built-in data type: | Enterprise PL/I data declaration: |
|---|---|
base64Binary |
(n) BIT(8) ALIGNED |
boolean |
BIT(1) ALIGNED |
string |
If the length facet is specified: |
date |
CHAR (n) VARYING or WCHAR (m) VARYING, |
| XSD built-in data type: | Enterprise PL/I data declaration: |
|---|---|
unsignedByte |
UNSIGNED FIXED BIN (8) |
unsignedShort |
UNSIGNED FIXED BIN (16) |
unsignedInt |
UNSIGNED FIXED BIN (32) |
unsignedLong |
UNSIGNED FIXED BIN (64) |
| XSD built-in data type: | Enterprise PL/I data declaration: |
|---|---|
Integer |
FIXED DECIMAL(n, 0) |
byte |
SIGNED FIXED BIN (7) |
short |
SIGNED FIXED BIN (15) |
int |
SIGNED FIXED BIN (31) |
long |
SIGNED FIXED BIN (63) |
| XSD built-in data type: | Enterprise PL/I data declaration: |
|---|---|
decimal |
FIXED DECIMAL (n, m) |
float |
FLOAT BIN(21) IEEE |
double |
FLOAT BIN(53) IEEE |
| XSD built-in data type: | Enterprise PL/I data declaration: |
|---|---|
ENTITY |
Not supported. |
ENTITIES |
Not supported. |
anySimpleType |
Not supported. |
anyType |
Not supported. |