XML Integration with ADO and Internet Explorer 5 - The Data Types
(Page 6 of 8 )
When generating XML from ADO, the data types are automatically created for us. If you intend to authorize XML yourself or create schemas for some existing XML, then you need to add support for data types. This is one of the big advantages of using schemas instead of DTDs. The table below lists all the data types supported by XML-data schemas:
| Type | Description |
|---|
| bin.base64 | A binary object. |
| bin.hex | Hexadecimal octets |
| boolean | 0 or 1 (0 for false, and 1 for true) |
| char | A one character length string |
| int | Integer number. |
| number | Floating point number. |
| float | Floating point number. |
| fixed.14.4 | Fixed with float point number, with up to 14 digits to the left of the decimal place and up to 4 digits to the right. |
| date | An ISO date without time. Format is yyy-mm-dd. |
| datetime | An ISO date with optional time. Format is yyy-mm-ddThh:mm:ss. |
| datetime.tz | An ISO date, optionally with time and timezones. |
| time | An ISO time. Format is hh:mm:ss. |
| time.tz | An ISO time with optional timezone. |
| i1 | An 8 bit integer. |
| i2 | A 16 bit integer. |
| i3 | A 32 bit integer. |
| r4 | An 8 byte real number. |
| r8 | A 16 byte real number. |
| ui1 | An 8 bit unsigned integer. |
| ui2 | A 16 bit unsigned integer. |
| ui4 | A 32 bit unsigned integer. |
| uri | A Universal Resource Indicator |
| uuid | A get of hex digits representing a universal identifier (e.g. GUID) |
Apart from this list, W3C also allows a set of primitive data types: string, entity, entities, enumeration, id, idref, idrefs, nmtoken, nmtokens, and notation.
Next: IE Data Islands and Binding >>
More XML Articles
More By Gayathri Gokul