O'Reilly logo

Enterprise Application Integration With XML and Java™ by Bill la Forge, JP Morgenthal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

6.5. Modeling Datatypes

Traditional data sources tend to be strongly typed. While an XML document, by definition, represents information as characters, retaining knowledge about the underlying datatype is essential. The metadata property dtype (as outlined above) will be used to capture datatype information. What set of datatype values should we use? While a comprehensive list of datatypes is an elusive (if not illusory) goal, a useful set has been compiled from the various schema submissions to the W3C. We'll adopt the convention of using these datatype names.

string
number
dateTime

boolean
float
date

uri
int
time

A related problem arises around the issue of storage size. For example, how many bytes are needed to store a value of type "int" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required