Simple Types
There are 44 built-in XML Schema types. Table 4 illustrates how HydraExpress maps XML Schema types to Standard C++ Library types and SourcePro C++ types.
NOTE: By default, HydraExpress links to Standard C++ Library types. To link to SourcePro C++ types, use the -sourcepro option when invoking the code generator.
For the SourcePro C++ classes in the table below, please refer to the SourcePro documentation for descriptions.
Table 4 – Mapping of built-in schema types to C++ types 
Built-in XML Schema Type
STL (Standard Template Library) Type
SourcePro C++ Type
string
std::string
RWCString
boolean
bool
bool
decimal
std::string
RWDecimalPortable
float
float
float
double
double
double
duration
std::string
dateTime
std::string
RWDateTime
time
std::string
RWDateTime
date
std::string
RWDate
gYearMonth
std::string
RWCString
gYear
std::string
RWCString
gMonthDay
std::string
RWCString
gDay
std::string
RWCString
gMonth
std::string
RWCString
hexBinary
std::string
RWCString
base64Binary
std::string
RWCString
anyURI
std::string
RWCString
QName
std::string
RWCString
Notation
std::string
RWCString
normalizedString
std::string
RWCString
token
std::string
RWCString
byte
short
short
unsigned byte
unsigned short
unsigned short
integer
std::string
RWDecimalPortable
positiveInteger
std::string
RWDecimalPortable
negativeInteger
std::string
RWDecimalPortable
nonNegativeInteger
std::string
RWDecimalPortable
nonPositiveInteger
std::string
RWDecimalPortable
int
int
int
unsignedInt
unsigned int
unsigned int
long
long
long
unsignedLong
unsigned long
unsigned long
short
short
short
unsignedShort
unsigned short
unsigned short
Name
std::string
RWCString
NCName
std::string
RWCString
language
std::string
RWCString
ID
std::string
RWCString
IDREF
std::string
RWCString
IDREFS
std::string
RWCString
ENTITY
std::string
RWCString
ENTITIES
std::string
RWCString
NMTOKEN
std::string
RWCString

1 For duration, the mapping is to a HydraExpress Library class because there is no good equivalent in SourcePro.