|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Conversion of XML Data Types
The majority of the methods found in an XmlConvert class are used to convert data between strings and strongly-typed formats. Methods are locale independent. This means that they do not take into account any locale settings when doing conversion.
The following sample reads a string and converts it to a DateTime type.
Given the following XML input:
This code converts the string to the DateTime format: