XML Schema Data Types

As you know, XML DTDs offer a limited number of data types and they are rather primitive. For all practical purposes, XML really only supports a string data type, which is extremely limiting if you're creating structured document schemas. The XML-Data note defines a number of rich data types that can be used to specify familiar data types, such as integers, floating point numbers, dates, and times, to name a few. As of Internet Explorer 5.0, XML Schema supports all of these data types in elements and hopefully will support them for attributes at some point in the future.

XML Schema data types are referenced from the urn:schema-microsoft-com:datatypes data types namespace. To make referencing the data types easier, you must ...

Get XML Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.