XML Datatype Schema
- Defines the data types for elements and
attributes
Strings
string
Numeric
integer
- [+,-]nn
- "123", "-123", "+123"
decimal
- [+,-]nn[.nn]
- "123", "123.45", "-123.45"
Floating point
float
- Single-precision 32-bit floating point
- "-INF",
"-1E4",
"-0", "0", "12.78E-2", "12", "INF", "NaN"
- "NaN" means "not a number"
double
- Double-precision 64-bit floating point
Boolean
boolean
Date and time
date
time
- hh:mm:ss[-hh:mm]
- "12:34:56.5", "12:34:56-04:00"
dateTime
- yyyy-mm-ddThh:mm:ss[-hh:mm]
- "2001-01-31T12:34:56.5",
"2001-01-31T12:34:56-04:00"
Partial date
gYear
gMonth
gDay
gYearMonth
gMonthDay
Duration
duration
- [-]P[nY][nM][nD][T[nH][nM][nS]]
- "P5Y", "P3M2D",
"P2DT8H", "PT4M9S", "-PT8S"
Binary data
base64Binary
- Base64-encoded binary data
- "GpM7"
hexBinary
- Hexadecimal-encoded binary data
- "07FF"
Misc
anyURI
- "http://www.domain.com/index.html"