Type Description
string Any character data
normalizedString A whitespace-normalized string
token A string that does not contain sequences of two or more spaces, tabs, carriage returns, or linefeed characters
byte A numeric value from -128 to 127
unsignedByte A numeric value from 0 to 255
base64Binary Base64 encoded binary information
hexBinary Hexadecimal encoded binary information
integer A numeric value representing a whole number
positiveInteger An integer whose value is greater than 0
negativeInteger An integer whose value is less than 0
nonNegativeInteger An integer whose value is 0 or greater
nonPositiveInteger An integer whose value is less than or equal to 0
int A numeric value from ?47483648 to 2147483647
unsignedInt A numeric value from 0 to 4294967295
long A numeric value from ?23372036854775808 to 9223372036854775807
unsignedLong A numeric value from 0to 18446744073709551615
short A numeric value from ?768 to 32767
unsignedShort A numeric value from 0 to 65535
decimal A numeric value that may or may not include a fractional part
float 32-bit floating-point type, INF, -INF, and NaN are also valid values.
double 64-bit floating-point type. -0, INF, -INF, and NaN are also valid values.
boolean true, false, 0, and 1 time.
dateTime An instant of time. For example, 2008-07-12T16:30:00.000.
duration A span of time. For example, P30D is 30 days.
date A date of the Gregorian calendar. For example, 2008-05-25 is a valid date value.
gMonth A month of Gregorian calendar. For example, --07 is a valid gMonth value.
gYear A year of Gregorian calendar. For example, 2008 is a valid gYear value.
gYearMonth A specific month and year. For example, 1998-07is a valid gYearMonth value.
gDay A recurring day of the month. For example, ---12 is a valid gDay value.
gMonthDay A recurring day of a specific month. For example, --07-12 is a valid gMonthDay value.
name An XML name according to the Namespace Recommendation.
QName A qualified XML name as defined in the Namespaces Recommendation.
NCName A noncolonized XML name that does not include a namespace prefix or colon
anyURI A valid Uniform Resource Identifier (URI)
language A language constant as defined in RFC 1766
In addition to the types listed, the XML Schema Recommendation also allows the types defined within
the XML Recommendation. These types include ID, IDREF, IDREFS, ENTITY, ENTITIES, NOTATION,
NMTOKEN, and NMTOKENS.
|