System.Xml Namespace
Summary
The System.Xml namespace provides a set of classes that represent XML data and enable applications to read, write, and process XML documents. This namespace includes classes for working with XML documents in memory, using a DOM (Document Object Model) or SAX (Simple API for XML) approach, and for performing transformations using XSLT.
Key features include:
- Efficient reading and writing of XML using
XmlReaderandXmlWriter. - In-memory representation of XML documents using
XmlDocumentand related node classes. - Namespace management for handling XML namespaces.
- Support for XML Schema validation.
- Classes for working with XML dictionaries for performance optimization.
Classes
-
XmlReader
Class
Represents a reader that provides fast, forward-only access to a stream of XML data.
-
XmlWriter
Class
Represents a writer for creating XML documents or fragments.
-
XmlDocument
Class
Represents an XML document.
-
XmlElement
Class
Represents an element in the XML document.
-
XmlNode
Abstract Class
Represents a node in the XML document.
-
XmlAttribute
Class
Represents an attribute of an element.
-
XmlNameTable
Abstract Class
Provides a mechanism for atomizing (caching) strings that are names or qualifying values (like attribute values or element content).
-
XmlNamespaceManager
Class
Manages the namespace prefixes for an XML document.
-
XmlResolver
Abstract Class
Resolves external XML resources.
-
XmlReaderSettings
Class
Specifies a set of features to support when creating an XmlReader by using the Create method.
-
XmlWriterSettings
Class
Specifies a set of features to support when creating an XmlWriter by using the Create method.
-
XmlException
Class
Represents errors generated during XML processing.
-
XmlConvert
Class
Provides methods for converting strings to and from various XML data types.
-
XmlDictionary
Class
Represents a dictionary for efficient storage and retrieval of XmlDictionaryString objects.
-
XmlDictionaryReader
Class
Represents a reader for XML content that uses a dictionary to optimize string storage.
-
XmlDictionaryWriter
Class
Represents a writer for XML content that uses a dictionary to optimize string storage.
-
XmlDictionaryString
Class
Represents a string that is stored and retrieved from an XmlDictionary.
Interfaces
-
IXmlLineInfo
Interface
Provides line number and line position information for an XML node.
-
IXmlNamespaceResolver
Interface
Provides methods for resolving XML namespaces.
-
IXmlDictionary
Interface
Represents a dictionary contract for use with dictionary XML readers and writers.
Enumerations
-
XmlNodeType
Enum
Specifies the type of a node.
-
XmlSpace
Enum
Specifies whether the content of an element is mixed or predominantly whitespace.