Try OpenEdge Now
skip to main content
Working with XML
XML Schema and ABL Data Type Mappings : Default mappings from other XML Schema data types to ABL data types
 

Default mappings from other XML Schema data types to ABL data types

There are many other XML Schema data types that could appear in an XML Schema definition. ABL maps these data types but also preserves the original XML Schema type in the XML-DATA-TYPE attribute of the buffer-field object. When the WRITE-XML( ) and WRITE-XMLSCHEMA( ) methods encounter buffer-fields with these values, they write the original XML Schema data type out to the XML Schema.
The following table lists the other XML Schema data types and the ABL data type they map to.
Table 29. Other XML Schema types and ABL data type mappings
XML Schema Type (type) Attribute
ABL Type
anyURI
CHARACTER
byte
INTEGER
double
CHARACTER
duration
CHARACTER
ENTITIES
CHARACTER
ENTITY
CHARACTER
float
CHARACTER
gDay
CHARACTER
gMonth
CHARACTER
gMonthDay
CHARACTER
gYear
CHARACTER
gYearMonth
CHARACTER
hexBinary
RAW
ID
CHARACTER
IDREF
CHARACTER
IDREFS
CHARACTER
integer
DECIMAL
language
CHARACTER
Name
CHARACTER
NCName
CHARACTER
negativeInteger
DECIMAL
NMTOKEN
CHARACTER
NMTOKENS
CHARACTER
nonNegativeInteger
DECIMAL
nonPositiveInteger
DECIMAL
normalizedString
CHARACTER
positiveInteger
DECIMAL
QName
CHARACTER
short
INTEGER
time
INTEGER
token
CHARACTER
unsignedByte
INTEGER
unsignedInt
DECIMAL
unsignedLong
DECIMAL
unsignedShort
INTEGER