XSD Type to BDS Type Mapping

The following table shows what BDS types the different XSD types are mapped to

XSD Type BOM Native Type BDS Type
xsd:base64Binary Text String
xsd:byte
xsd:byte (nillable) Integer (signed) Integer
xsd:decimal Decimal (fixed – BigDecimal) BigDecimal
xsd:float
xsd:float (nillable) Decimal (floating point – Double) Double
xsd:gDay Text String
xsd:gMonth Text String
xsd:gMonthDay Text String
xsd:gYear Text String
xsd:gYearMonth Text String
xsd:hexBinary Text String
xsd:IDREF Text String
xsd:IDREFS Text String
xsd:integer Integer (fixed – BigInteger) BigInteger
xsd:language Text String
xsd:long
xsd:long (nillable) Integer (fixed – BigInteger) BigInteger
BigInteger
xsd:Name Text String
xsd:NCName Text String
xsd:negativeInteger Integer (fixed – BigInteger) BigInteger
xsd:NMTOKEN Text String
xsd:NMTOKENS Text String
xsd:nonNegativeInteger Integer (fixed – BigInteger) BigInteger
xsd:nonPositiveInteger Integer (fixed – BigInteger) BigInteger
xsd:normalizedString Text String
xsd:positiveInteger Integer (fixed – BigInteger) BigInteger
xsd:QName Text String
xsd:short
xsd:short (nillable) Integer (signed) Integer
xsd:unsignedByte
xsd:unsignedByte (nillable) Integer (signed) Integer
xsd:unsignedInt
xsd:unsignedInt (nillable) Integer (fixed – BigInteger) BigInteger
xsd:unsignedLong Integer (fixed – BigInteger) BigInteger
xsd:unsignedShort
xsd:unsignedShort (nillable) Integer (signed) Integer
xsd:string Text String
xsd:int

xsd:int (nillable)

Integer (signed) Integer
xsd:double

xsd:double (nillable)

Decimal (floating point – double) Double
xsd:ID Text String
xsd:date Date XMLGregorianCalendar
xsd:datetime Datetime XMLGregorianCalendar
xsd:duration Duration Duration
xsd:time Time XMLGregorianCalendar
xsd:anyURI URI String
xsd:boolean
xsd:boolean (nillable) Boolean Boolean
xsd:ENTITY Text String
xsd:ENTITIES Text String
xsd:anyType Object EObject
xsd:anySimpleType Object Java Object
xsd:token Text String
xsd:any Object FeatureMap
xsd:anyAttribute Object FeatureMap