XML Schema - Data Types Q U Ick Reference
XML Schema - Data Types Q U Ick Reference
nonNegativeInteger Infinite set {0, 1, 2, ...}. Sign omitted, "+" assumed, leading
Following attribute types should only be used in attribute
declaration for compatiblity reasons:
float 32-bit floating point type - legal literals {0, -0, INF, -INF and NaN} Example, - gYearMonth Specific gregorian month and year. ©2001 D Vint Productions
1E4, 1267.43233E12, 12.78e-2, 12 and INF Example, May 1999, write: 1999-05.
xmlhelp@ dvint.com
int 2147483647 to -2147483648. an optional sign followed by a finite-length tim e An instant of time that recurs every day. Example, 1:20 pm for Eastern Stan- http://w w w .xm l.dvint.com
sequence of decimal digits (#x30-#x39). If the sign is omitted, "+" is assumed. Exam- dard Time which is 5 hours behind Coordinated Universal Time (UTC), write:
ple: -1, 0, 126789675, +100000. 13:20:00-05:00.
Constraining Facets 9 Regular Expressions for Patterns
<length id = ID <maxExclusive id = ID
m in In c lu s iv e
w h ite S p a c e
fixed = boolean : false fixed = boolean : false S p e c i a l C h a r a c t e r s n e e d i n g t o b e e s c a p e d w i t h a ‘\’
m in L en g th
m a x L e ng th
to talD ig its
\|.-^?*+{}()[]
value = nonNegativeInteger > value = anySimpleType> Data Type
p a tte rn
le n g th
Content: (annotation?) </length> Content: (annotation?) Special Character Sequences
</maxExclusive> \n newline \W not XML Letter or Digit charac-
<minLength id = ID
ters
fixed = boolean : false <minExclusive id = ID decimal ? ? ? ? ? ? ? ? ?
\r return
value = nonNegativeInteger > fixed = boolean : false \t tab \p{IsBasicLatin} block escape
double ? ? ? ? ? ? ?
identifying ASCII characters, sim-
Content: (annotation?) </minLength> value = anySimpleType> duration ? ? ? ? ? ? ? . (dot) all characters except newline ilar IsGreek, IsHebrew, IsThai for
Content: (annotation?) and return
<maxLength id = ID ENTITIES ? ? ? ? ? these ranges of Unicode blocks
</minExclusive> \s space characters (space, tab,
fixed = boolean : false ENTITY ? ? ? ? ? ? \p{L} all Letters
newline, return)
value = nonNegativeInteger > <minInclusive id = ID float ? ? ? ? ? ? ? \p{M} all Marks
Content: (annotation?) </maxLength> fixed = boolean : false \S non-Space characters
gDay ? ? ? ? ? ? ? \p{N} all Numbers
value = anySimpleType> \i initial XML name characters (let-
<pattern id = ID gMonth ? ? ? ? ? ? ?
ter _ ;)
\p{P} all Punctuation
Content: (annotation?)
value = anySimpleType gMonthDay ? ? ? ? ? ? ? \p{Z} all Separators
</minInclusive> \I not initial XML name characters
Content: (annotation?) </pattern> gYear ? ? ? ? ? ? ? \p{S} all Symbols
\c XML NameChar characters
<totalDigits id = ID
<enumeration id = ID gYearMonth ? ? ? ? ? ? ?
\C not XML NameChar characters
\p{C} all Others. Additional modifying
fixed = boolean : false
value = anySimpleType > hexBinary ? ? ? ? ? ? values like Lu = uppercase,
value = positiveInteger > \d decimal digits Ll = lowercase, Nd = decimal
Content: (annotation?) ID ? ? ? ? ? ?
Content: (annotation?) \D not decimal digits digit, Sm = math symbols,
</enumeration> IDREF ? ? ? ? ? ?
Sc = currency
</totalDigits> \w XML Letter or Digit characters
? ? ? ? ?
<whiteSpace id = ID IDREFS \P{} not the block or category,
fixed = boolean : false <fractionDigits id = ID int ? ? ? ? ? ? ? ? ? ? \P{IsGreek} = not Greek block
value = (collapse | preserve | replace)> fixed = boolean : false integer ? ? ? ? ? ? ? ? ? ?
m in In c lus iv e
w h ite S p a c e
NOTATION ? ? ? ? ? ?
m in L e n g th
m a xL e n g th
to ta lD ig its
QName ? ? ? ? ? ?
short ? ? ? ? ? ? ? ? ? ?
string ? ? ? ? ? ?
anyURI ? ? ? ? ? ?
time ? ? ? ? ? ? ?
base64Binary ? ? ? ? ? ?
token ? ? ? ? ? ?
boolean ? ?
unsignedByte ? ? ? ? ? ? ? ? ? ?
byte ? ? ? ? ? ? ? ? ? ?
unsignedInt ? ? ? ? ? ? ? ? ? ? ©2001 D Vint Productions
date ? ? ? ? ? ? ?
unsignedLong ? ? ? ? ? ? ? ? ? ? xmlhelp@ dvint.com
dateTime ? ? ? ? ? ? ?
unsignedShort ? ? ? ? ? ? ? ? ? ? http://w w w .xm l.dvint.com