Atomic Types
- An atomic type is
- A primitive simple type as defined in W3C XML
Schema
- e.g. xs:string,
xs:boolean, xs:date,
xs:gYear, xs:integer,
xs:anyURI ...
- Identified by the http://www.w3.org/2001/XMLSchema namespace
bind as xmlns:xs="http://www.w3.org/2001/XMLSchema"
- A type derived from another atomic type by
restriction
- One of five new types
-
xdt:untyped
-
xdt:untypedAtomic
-
xdt:anyAtomictype
-
xdt:dayTimeDuration
-
xdt:yearMonthDuration
- Identified by the XPath 2.0 namespace
try xmlns:xdt="http://www.w3.org/2005/02/xpath-datatypes"
(But check: this namespace is from the February draft!)