System.Xml Namespace

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 classXmlAttributeRepresents an attribute. Valid and default values for the attribute are defined in a document type definition (DTD) or schema.
Public classXmlAttributeCollectionRepresents a collection of attributes that can be accessed by name or index.
Public classXmlCDataSectionRepresents a CDATA section.
Public classXmlCharacterDataProvides text manipulation methods that are used by several classes.
Public classXmlCommentRepresents the content of an XML comment.
Public classXmlConvertEncodes and decodes XML names and provides methods for converting between common language runtime types and XML Schema definition language (XSD) types. When converting data types the values returned are locale independent.
Public classXmlDataDocumentAllows structured data to be stored, retrieved, and manipulated through a relational DataSet.
Public classXmlDeclarationRepresents the XML declaration node <?xml version='1.0'...?>.
Public classXmlDocumentRepresents an XML document.
Public classXmlDocumentFragmentRepresents a lightweight object that is useful for tree insert operations.
Public classXmlDocumentTypeRepresents the document type declaration.
Public classXmlElementRepresents an element.
Public classXmlEntityRepresents an entity declaration, such as <!ENTITY... >.
Public classXmlEntityReferenceRepresents an entity reference node.
Public classXmlExceptionReturns detailed information about the last exception.
Public classXmlImplementationDefines the context for a set of XmlDocument objects.
Public classXmlLinkedNodeGets the node immediately preceding or following this node.
Public classXmlNamedNodeMapRepresents a collection of nodes that can be accessed by name or index.
Public classXmlNamespaceManagerResolves, adds, and removes namespaces to a collection and provides scope management for these namespaces.
Public classXmlNameTableTable of atomized string objects.
Public classXmlNodeRepresents a single node in the XML document.
Public classXmlNodeChangedEventArgsProvides data for the NodeChanged, NodeChanging, NodeInserted, NodeInserting, NodeRemoved and NodeRemoving events.
Public classXmlNodeListRepresents an ordered collection of nodes.
Public classXmlNodeReaderRepresents a reader that provides fast, non-cached forward only access to XML data in an XmlNode.
Public classXmlNotationRepresents a notation declaration, such as <!NOTATION... >.
Public classXmlParserContextProvides all the context information required by the XmlReader to parse an XML fragment.
Public classXmlProcessingInstructionRepresents a processing instruction, which XML defines to keep processor-specific information in the text of the document.
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 classXmlSecureResolverHelps to secure another implementation of XmlResolver by wrapping the XmlResolver object and restricting the resources that the underlying XmlResolver has access to.
Public classXmlSignificantWhitespaceRepresents white space between markup in a mixed content node or white space within an xml:space= 'preserve' scope. This is also referred to as significant white space.
Public classXmlTextRepresents the text content of an element or attribute.
Public classXmlTextReaderRepresents a reader that provides fast, non-cached, forward-only access to XML data.
Public classXmlTextWriterRepresents a writer that provides a fast, non-cached, forward-only way of generating streams or files containing XML data that conforms to the W3C Extensible Markup Language (XML) 1.0 and the Namespaces in XML recommendations.
Public classXmlUrlResolverResolves external XML resources named by a Uniform Resource Identifier (URI).
Public classXmlValidatingReaderRepresents a reader that provides document type definition (DTD), XML-Data Reduced (XDR) schema, and XML Schema definition language (XSD) validation.
Public classXmlWhitespaceRepresents white space in element content.
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 System.Xml.XmlWriter.Create method.

Public interfaceIHasXmlNodeEnables a class to return an XmlNode from the current context or position.
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 delegateXmlNodeChangedEventHandlerRepresents the method that handles NodeChanged, NodeChanging, NodeInserted, NodeInserting, NodeRemoved and NodeRemoving events.

Public enumerationConformanceLevelSpecifies the amount of input or output checking that the created XmlReader and XmlWriter objects perform.
Public enumerationEntityHandlingSpecifies how the XmlTextReader or XmlValidatingReader handle entities.
Public enumerationFormattingSpecifies formatting options for the XmlTextWriter.
Public enumerationNewLineHandlingSpecifies how to handle line breaks.
Public enumerationReadStateSpecifies the state of the reader.
Public enumerationValidationTypeSpecifies the type of validation to perform.
Public enumerationWhitespaceHandlingSpecifies how white space is handled.
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 enumerationXmlNodeChangedActionSpecifies the type of node change.
Public enumerationXmlNodeOrderDescribes the document order of a node compared to a second node.
Public enumerationXmlNodeTypeSpecifies the type of node.
Public enumerationXmlOutputMethodSpecifies the method used to serialize the XmlWriter output.
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.