Mapping Atomic Types to CLR Types
Overview
This document explains the types that are used to represent atomic values in XmlPrime. In particular these are the types that are used in the TypedValueTypedValueTypedValue and ValueTypeValueTypeValueType properties on the XPathAtomicValueXPathAtomicValueXPathAtomicValue class.
The types exposed for atomic values in XmlPrime differ from those used
in the System.XmlSystem.XmlSystem.Xml namespace.
In some places we have used different types because the types used in
the System.XmlSystem.XmlSystem.Xml namespace
do not fully represent the value (for example the lack of time zones in
the date and time types). In other cases we have used the base type to
represent values, for example using
decimalDecimaldecimal instances to
represent xs:int
instances. This may change
in a future version to be more in line with the .NET types.
xs:integer
may be changed to bring them in
line with those used by the
System.XmlSystem.XmlSystem.Xml
classes.