Collapse the table of content
Expand the table of content

System.Xml Namespace

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The System.Xml namespace provides standards-based support for processing XML.

The supported standards include:

  • XML 1.0 (, including DTD support.

  • XML Namespaces (, both stream level and DOM.

  • XSD Schemas (

  • XPath expressions (

  • XSLT transformations (

  • DOM Level 1 Core (

  • DOM Level 2 Core (

Public classNameTableImplements a single-threaded XmlNameTable.
Public classUniqueIdRepresents a unique identifier optimized for GUIDs.
Public classXmlBinaryReaderSessionEnables optimized strings to be managed in a dynamic way.
Public classXmlBinaryWriterSessionEnables using a dynamic dictionary to compress common strings that appear in a message and maintain state.
Public classXmlConvertEncodes and decodes XML names and provides methods for converting between common language runtime types. When converting data types the values returned are locale independent.
Public classXmlDictionaryImplements a dictionary used to optimize Windows Phone's XML reader/writer implementations.
Public classXmlDictionaryReaderAn abstractWindows Phone class that provides some additional serialization and deserialization functionality to XmlReader.
Public classXmlDictionaryReaderQuotasContains quota values for XmlDictionaryReader.
Public classXmlDictionaryStringRepresents an entry stored in a XmlDictionary.
Public classXmlDictionaryWriterAn abstract class to do serialization and deserialization.
Public classXmlExceptionReturns detailed information about the last exception.
Public classXmlNamespaceManagerResolves, adds, and removes namespaces to a collection and provides scope management for these namespaces.
Public classXmlNameTableTable of atomized string objects.
Public classXmlParserContextProvides all the context information required by the XmlReader to parse an XML fragment.
Public classXmlQualifiedNameRepresents an XML qualified name.
Public classXmlReaderRepresents a reader that provides fast, non-cached, forward-only access to XML data.
Public classXmlReaderSettingsSpecifies a set of features to support on the XmlReader object created by the Create method.
Public classXmlResolverResolves external XML resources named by a Uniform Resource Identifier (URI).
Public classXmlWriterRepresents a writer that provides a fast, non-cached, forward-only means of generating streams or files containing XML data.
Public classXmlWriterSettingsSpecifies a set of features to support on the XmlWriter object created by the XmlWriter.Create method.
Public classXmlXapResolverThe XmlXapResolver type is used to resolve resources in the Windows Phone application’s XAP package.

Public interfaceIXmlDictionaryAn interface that defines the contract that an XML dictionary must implement to be used by XmlDictionaryReader and XmlDictionaryWriter implementations.
Public interfaceIXmlLineInfoProvides an interface to enable a class to return line and position information.
Public interfaceIXmlNamespaceResolverProvides read-only access to a set of prefix and namespace mappings.

Public enumerationConformanceLevelSpecifies the amount of input or output checking that the created XmlReader and XmlWriter objects perform.
Public enumerationDtdProcessingSpecifies the options for processing DTDs. The DtdProcessing enumeration is used by XmlReaderSettings.
Public enumerationNamespaceHandlingSpecifies whether to remove duplicate namespace declarations in the XmlWriter.
Public enumerationNewLineHandlingSpecifies how to handle line breaks.
Public enumerationReadStateSpecifies the state of the reader.
Public enumerationWriteStateSpecifies the state of the XmlWriter.
Public enumerationXmlDateTimeSerializationModeSpecifies how to treat the time value when converting between string and DateTime.
Public enumerationXmlNamespaceScopeDefines the namespace scope.
Public enumerationXmlNodeTypeSpecifies the type of node.
Public enumerationXmlSpaceSpecifies the current xml:space scope.
Public enumerationXmlTokenizedTypeRepresents the XML type for the string. This allows the string to be read as a particular XML type, for example a CDATA section type.

© 2017 Microsoft