Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

System.Xml.ReaderWriter

System Library

Author Microsoft
Version 10.0.1
Tags

Public Types

System.​Xml

Specifies the amount of input or output checking that <see cref="T:System.Xml.XmlReader" /> and <see cref="T:System.Xml.XmlWriter" /> objects perform.
Specifies the options for processing DTDs. The <see cref="T:System.Xml.DtdProcessing" /> enumeration is used by the <see cref="T:System.Xml.XmlReaderSettings" /> class.
Specifies how the <see cref="T:System.Xml.XmlTextReader" /> or <see cref="T:System.Xml.XmlValidatingReader" /> handle entities.
enum Formatting
Specifies formatting options for the <see cref="T:System.Xml.XmlTextWriter" /> .
Represents an application resource stream resolver.
interface IHasXmlNode
Enables a class to return an <see cref="T:System.Xml.XmlNode" /> from the current context or position.
interface IXmlLineInfo
Provides an interface to enable a class to return line and position information.
Provides read-only access to a set of prefix and namespace mappings.
Specifies whether to remove duplicate namespace declarations in the <see cref="T:System.Xml.XmlWriter" /> .
class NameTable
Implements a single-threaded <see cref="T:System.Xml.XmlNameTable" /> .
Specifies how to handle line breaks.
enum ReadState
Specifies the state of the reader.
Specifies the type of validation to perform.
Specifies how white space is handled.
enum WriteState
Specifies the state of the <see cref="T:System.Xml.XmlWriter" /> .
class XmlAttribute
Represents an attribute. Valid and default values for the attribute are defined in a document type definition (DTD) or schema.
Represents a collection of attributes that can be accessed by name or index.
Represents a CDATA section.
Provides text manipulation methods that are used by several classes.
class XmlComment
Represents the content of an XML comment.
class XmlConvert
Encodes 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.
Specifies how to treat the time value when converting between string and <see cref="T:System.DateTime" /> .
Represents the XML declaration node &lt;?xml version='1.0'...?&gt;.
class XmlDocument
Represents an XML document. You can use this class to load, validate, edit, add, and position XML in a document.
Represents a lightweight object that is useful for tree insert operations.
Represents the document type declaration.
class XmlElement
Represents an element.
class XmlEntity
Represents an entity declaration, such as &lt;!ENTITY... &gt;.
Represents an entity reference node.
class XmlException
Returns detailed information about the last exception.
Defines the context for a set of <see cref="T:System.Xml.XmlDocument" /> objects.
Gets the node immediately preceding or following this node.
Represents a collection of nodes that can be accessed by name or index.
Resolves, adds, and removes namespaces to a collection and provides scope management for these namespaces.
Defines the namespace scope.
class XmlNameTable
Table of atomized string objects.
class XmlNode
Represents a single node in the XML document.
Specifies the type of node change.
Provides data for the <see cref="E:System.Xml.XmlDocument.NodeChanged" /> , <see cref="E:System.Xml.XmlDocument.NodeChanging" /> , <see cref="E:System.Xml.XmlDocument.NodeInserted" /> , <see cref="E:System.Xml.XmlDocument.NodeInserting" /> , <see cref="E:System.Xml.XmlDocument.NodeRemoved" /> and <see cref="E:System.Xml.XmlDocument.NodeRemoving" /> events.
Represents the method that handles <see cref="E:System.Xml.XmlDocument.NodeChanged" /> , <see cref="E:System.Xml.XmlDocument.NodeChanging" /> , <see cref="E:System.Xml.XmlDocument.NodeInserted" /> , <see cref="E:System.Xml.XmlDocument.NodeInserting" /> , <see cref="E:System.Xml.XmlDocument.NodeRemoved" /> and <see cref="E:System.Xml.XmlDocument.NodeRemoving" /> events.
class XmlNodeList
Represents an ordered collection of nodes.
Describes the document order of a node compared to a second node.
Represents a reader that provides fast, non-cached forward only access to XML data in an <see cref="T:System.Xml.XmlNode" /> .
Specifies the type of node.
class XmlNotation
Represents a notation declaration, such as &lt;!NOTATION... &gt;.
Specifies the method used to serialize the <see cref="T:System.Xml.XmlWriter" /> output.
Provides all the context information required by the <see cref="T:System.Xml.XmlReader" /> to parse an XML fragment.
Represents a processing instruction, which XML defines to keep processor-specific information in the text of the document.
Represents an XML qualified name.
class XmlReader
Represents a reader that provides fast, noncached, forward-only access to XML data.
Specifies a set of features to support on the <see cref="T:System.Xml.XmlReader" /> object created by the <see cref="Overload:System.Xml.XmlReader.Create" /> method.
class XmlResolver
Resolves external XML resources named by a Uniform Resource Identifier (URI).
Helps to secure another implementation of <see cref="T:System.Xml.XmlResolver" /> by wrapping the <see cref="T:System.Xml.XmlResolver" /> object and restricting the resources that the underlying <see cref="T:System.Xml.XmlResolver" /> has access to.
Represents 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.
enum XmlSpace
Specifies the current <see langword="xml:space" /> scope.
class XmlText
Represents the text content of an element or attribute.
Represents a reader that provides fast, non-cached, forward-only access to XML data. We recommend that you use the <see cref="T:System.Xml.XmlReader" /> class instead.
Represents 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. We recommend that you use the <see cref="T:System.Xml.XmlWriter" /> class instead.
Represents the XML type for the string. This allows the string to be read as a particular XML type, for example a CDATA section type.
Resolves external XML resources named by a Uniform Resource Identifier (URI).
Represents a reader that provides document type definition (DTD), XML-Data Reduced (XDR) schema, and XML Schema definition language (XSD) validation. This class is obsolete. We recommend that you use the <see cref="T:System.Xml.XmlReaderSettings" /> class and the <see cref="Overload:System.Xml.XmlReader.Create" /> method to create a validating XML reader.
Represents white space in element content.
class XmlWriter
Represents a writer that provides a fast, non-cached, forward-only way to generate streams or files that contain XML data.
Specifies a set of features to support on the <see cref="T:System.Xml.XmlWriter" /> object created by the <see cref="Overload:System.Xml.XmlWriter.Create" /> method.

System.​Xml.​Resolvers

The <see cref="T:System.Xml.Resolvers.XmlKnownDtds" /> enumeration is used by the <see cref="T:System.Xml.Resolvers.XmlPreloadedResolver" /> and defines which well-known DTDs that the <see cref="T:System.Xml.Resolvers.XmlPreloadedResolver" /> recognizes.
Represents a class that is used to prepopulate the cache with DTDs or XML streams.

System.​Xml.​Schema

interface IXmlSchemaInfo
Defines the post-schema-validation infoset of a validated XML node.
Returns detailed information related to the <see langword="ValidationEventHandler" /> .
Represents the callback method that will handle XML schema validation events and the <see cref="T:System.Xml.Schema.ValidationEventArgs" /> .
Represents the typed value of a validated XML element or attribute. The <see cref="T:System.Xml.Schema.XmlAtomicValue" /> class cannot be inherited.
class XmlSchema
An in-memory representation of an XML Schema, as specified in the World Wide Web Consortium (W3C) XML Schema Part 1: Structures and XML Schema Part 2: Datatypes].
class XmlSchemaAll
Represents the World Wide Web Consortium (W3C) <see langword="all" /> element (compositor).
The base class for any element that can contain annotation elements.
Represents the World Wide Web Consortium (W3C) <see langword="annotation" /> element.
class XmlSchemaAny
Represents the World Wide Web Consortium (W3C) <see langword="any" /> element.
Represents the World Wide Web Consortium (W3C) <see langword="anyAttribute" /> element.
Represents the World Wide Web Consortium (W3C) <see langword="appinfo" /> element.
Represents the <see langword="attribute" /> element from the XML Schema as specified by the World Wide Web Consortium (W3C). Attributes provide additional information for other document elements. The attribute tag is nested between the tags of a document's element for the schema. The XML document displays attributes as named items in the opening tag of an element.
Represents the <see langword="attributeGroup" /> element from the XML Schema as specified by the World Wide Web Consortium (W3C). AttributesGroups provides a mechanism to group a set of attribute declarations so that they can be incorporated as a group into complex type definitions.
Represents the <see langword="attributeGroup" /> element with the <see langword="ref" /> attribute from the XML Schema as specified by the World Wide Web Consortium (W3C). AttributesGroupRef is the reference for an attributeGroup, name property contains the attribute group being referenced.
Represents the <see langword="choice" /> element (compositor) from the XML Schema as specified by the World Wide Web Consortium (W3C). The <see langword="choice" /> allows only one of its children to appear in an instance.
Contains a cache of XML Schema definition language (XSD) and XML-Data Reduced (XDR) schemas. The <see cref="T:System.Xml.Schema.XmlSchemaCollection" /> class is obsolete. Use <see cref="T:System.Xml.Schema.XmlSchemaSet" /> instead.
Supports a simple iteration over a collection. This class cannot be inherited.
Provides schema compilation options for the <see cref="T:System.Xml.Schema.XmlSchemaSet" /> class This class cannot be inherited.
Represents the <see langword="complexContent" /> element from XML Schema as specified by the World Wide Web Consortium (W3C). This class represents the complex content model for complex types. It contains extensions or restrictions on a complex type that has either only elements or mixed content.
Represents the <see langword="extension" /> element from XML Schema as specified by the World Wide Web Consortium (W3C). This class is for complex types with complex content model derived by extension. It extends the complex type by adding attributes or elements.
Represents the <see langword="restriction" /> element from XML Schema as specified by the World Wide Web Consortium (W3C). This class is for complex types with a complex content model derived by restriction. It restricts the contents of the complex type to a subset of the inherited complex type.
Represents the <see langword="complexType" /> element from XML Schema as specified by the World Wide Web Consortium (W3C). This class defines a complex type that determines the set of attributes and content of an element.
An abstract class for schema content.
Specifies the order and structure of the child elements of a type.
Provides information about the validation mode of <see langword="any" /> and <see langword="anyAttribute" /> element replacements.
Enumerations for the content model of the complex type. This represents the content in the post-schema-validation information set (infoset).
The <see cref="T:System.Xml.Schema.XmlSchemaDatatype" /> class is an abstract class for mapping XML Schema definition language (XSD) types to Common Language Runtime (CLR) types.
Specifies the W3C XML schema data type variety of the type.
Provides different methods for preventing derivation.
Represents the <see langword="documentation" /> element from XML Schema as specified by the World Wide Web Consortium (W3C). This class specifies information to be read or used by humans within an <see langword="annotation" /> .
Represents the <see langword="element" /> element from XML Schema as specified by the World Wide Web Consortium (W3C). This class is the base class for all particle types and is used to describe an element in an XML document.
Represents the <see langword="enumeration" /> facet from XML Schema as specified by the World Wide Web Consortium (W3C). This class specifies a list of valid values for a simpleType element. Declaration is contained within a <see langword="restriction" /> declaration.
Returns detailed information about the schema exception.
An abstract class. Provides information about the included schema.
Abstract class for all facets that are used when simple types are derived by restriction.
Indicates if attributes or elements need to be qualified with a namespace prefix.
Specifies a restriction on the number of digits that can be entered for the fraction value of a simpleType element. The value of fractionDigits must be a positive integer. Represents the World Wide Web Consortium (W3C) <see langword="fractionDigits" /> facet.
Represents the <see langword="group" /> element from XML Schema as specified by the World Wide Web Consortium (W3C). This class defines groups at the <see langword="schema" /> level that are referenced from the complex types. It groups a set of element declarations so that they can be incorporated as a group into complex type definitions.
An abstract class for <see cref="T:System.Xml.Schema.XmlSchemaAll" /> , <see cref="T:System.Xml.Schema.XmlSchemaChoice" /> , or <see cref="T:System.Xml.Schema.XmlSchemaSequence" /> .
Represents the <see langword="group" /> element with <see langword="ref" /> attribute from the XML Schema as specified by the World Wide Web Consortium (W3C). This class is used within complex types that reference a <see langword="group" /> defined at the <see langword="schema" /> level.
Class for the identity constraints: <see langword="key" /> , <see langword="keyref" /> , and <see langword="unique" /> elements.
Represents the <see langword="import" /> element from XML Schema as specified by the World Wide Web Consortium (W3C). This class is used to import schema components from other schemas.
Represents the <see langword="include" /> element from XML Schema as specified by the World Wide Web Consortium (W3C). This class is used to include declarations and definitions from an external schema. The included declarations and definitions are then available for processing in the containing schema.
Infers an XML Schema Definition Language (XSD) schema from an XML document. The <see cref="T:System.Xml.Schema.XmlSchemaInference" /> class cannot be inherited.
Returns information about errors encountered by the <see cref="T:System.Xml.Schema.XmlSchemaInference" /> class while inferring a schema from an XML document.
Represents the post-schema-validation infoset of a validated XML node.
class XmlSchemaKey
This class represents the <see langword="key" /> element from XMLSchema as specified by the World Wide Web Consortium (W3C).
This class represents the <see langword="keyref" /> element from XMLSchema as specified by the World Wide Web Consortium (W3C).
Represents the <see langword="length" /> facet from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to specify a restriction on the length of a <see langword="simpleType" /> element on the data type.
Represents the <see langword="maxExclusive" /> element from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to specify a restriction on the maximum value of a <see langword="simpleType" /> element. The element value must be less than the value of the <see langword="maxExclusive" /> element.
Represents the <see langword="maxInclusive" /> element from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to specify a restriction on the maximum value of a <see langword="simpleType" /> element. The element value must be less than or equal to the value of the <see langword="maxInclusive" /> element.
Represents the <see langword="maxLength" /> element from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to specify a restriction on the maximum length of the data value of a <see langword="simpleType" /> element. The length must be less than the value of the <see langword="maxLength" /> element.
Represents the <see langword="minExclusive" /> element from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to specify a restriction on the minimum value of a <see langword="simpleType" /> element. The element value must be greater than the value of the <see langword="minExclusive" /> element.
Represents the <see langword="minInclusive" /> element from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to specify a restriction on the minimum value of a simpleType element. The element value must be greater than or equal to the value of the <see langword="minInclusive" /> element.
Represents the <see langword="minLength" /> element from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to specify a restriction on the minimum length of the data value of a <see langword="simpleType" /> element. The length must be greater than the value of the <see langword="minLength" /> element.
Represents the <see langword="notation" /> element from XML Schema as specified by the World Wide Web Consortium (W3C). An XML Schema <see langword="notation" /> declaration is a reconstruction of <see langword="XML 1.0 NOTATION" /> declarations. The purpose of notations is to describe the format of non-XML data within an XML document.
Abstract class for defining <see langword="numeric" /> facets. This class is the base class for numeric facet classes such as <see cref="T:System.Xml.Schema.XmlSchemaMinLengthFacet" /> .
Represents the root class for the Xml schema object model hierarchy and serves as a base class for classes such as the <see cref="T:System.Xml.Schema.XmlSchema" /> class.
A collection of <see cref="T:System.Xml.Schema.XmlSchemaObject" /> s.
Represents the enumerator for the <see cref="T:System.Xml.Schema.XmlSchemaObjectCollection" /> .
Provides the collections for contained elements in the <see cref="T:System.Xml.Schema.XmlSchema" /> class (for example, Attributes, AttributeGroups, Elements, and so on).
Abstract class for that is the base class for all particle types (e.g. <see cref="T:System.Xml.Schema.XmlSchemaAny" /> ).
Represents the <see langword="pattern" /> element from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to specify a restriction on the value entered for a <see langword="simpleType" /> element.
Represents the <see langword="redefine" /> element from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to allow simple and complex types, groups and attribute groups from external schema files to be redefined in the current schema. This class can also be used to provide versioning for the schema elements.
Represents the <see langword="sequence" /> element (compositor) from the XML Schema as specified by the World Wide Web Consortium (W3C). The <see langword="sequence" /> requires the elements in the group to appear in the specified sequence within the containing element.
class XmlSchemaSet
Contains a cache of XML Schema definition language (XSD) schemas.
Represents the <see langword="simpleContent" /> element from XML Schema as specified by the World Wide Web Consortium (W3C). This class is for simple and complex types with simple content model.
Represents the <see langword="extension" /> element for simple content from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to derive simple types by extension. Such derivations are used to extend the simple type content of the element by adding attributes.
Represents the <see langword="restriction" /> element for simple content from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to derive simple types by restriction. Such derivations can be used to restrict the range of values for the element to a subset of the values specified in the inherited simple type.
Represents the <see langword="simpleType" /> element for simple content from XML Schema as specified by the World Wide Web Consortium (W3C). This class defines a simple type. Simple types can specify information and constraints for the value of attributes or elements with text-only content.
Abstract class for simple type content classes.
Represents the <see langword="list" /> element from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to define a <see langword="simpleType" /> element as a list of values of a specified data type.
Represents the <see langword="restriction" /> element for simple types from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used restricting <see langword="simpleType" /> element.
Represents the <see langword="union" /> element for simple types from XML Schema as specified by the World Wide Web Consortium (W3C). A <see langword="union" /> datatype can be used to specify the content of a <see langword="simpleType" /> . The value of the <see langword="simpleType" /> element must be any one of a set of alternative datatypes specified in the union. Union types are always derived types and must comprise at least two alternative datatypes.
Represents the <see langword="totalDigits" /> facet from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to specify a restriction on the number of digits that can be entered for the value of a <see langword="simpleType" /> element. That value of <see langword="totalDigits" /> must be a positive integer.
The base class for all simple types and complex types.
Represents the <see langword="unique" /> element from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to identify a unique constraint among a set of elements.
Indicator of how the attribute is used.
Represents the exception thrown when XML Schema Definition Language (XSD) schema validation errors and warnings are encountered in an XML document being validated.
Specifies schema validation options used by the <see cref="T:System.Xml.Schema.XmlSchemaValidator" /> and <see cref="T:System.Xml.XmlReader" /> classes.
Represents an XML Schema Definition Language (XSD) Schema validation engine. The <see cref="T:System.Xml.Schema.XmlSchemaValidator" /> class cannot be inherited.
Represents the validity of an XML item validated by the <see cref="T:System.Xml.Schema.XmlSchemaValidator" /> class.
Represents the World Wide Web Consortium (W3C) <see langword="whiteSpace" /> facet.
Represents the World Wide Web Consortium (W3C) <see langword="selector" /> element.
Represents the severity of the validation event.
Represents the W3C XML Schema Definition Language (XSD) schema types.
A <see langword="delegate" /> used by the <see cref="T:System.Xml.Schema.XmlSchemaValidator" /> class to pass attribute, text, and white space values as a Common Language Runtime (CLR) type compatible with the XML Schema Definition Language (XSD) type of the attribute, text, or white space.

System.​Xml.​Serialization

interface IXmlSerializable
Provides custom formatting for XML serialization and deserialization.
Specifies that the member (a field that returns an array of <see cref="T:System.Xml.XmlAttribute" /> objects) can contain any XML attributes.
Specifies that the member (a field that returns an array of <see cref="T:System.Xml.XmlElement" /> or <see cref="T:System.Xml.XmlNode" /> objects) contains objects that represent any XML element that has no corresponding member in the object being serialized or deserialized.
Specifies that the <see cref="T:System.Xml.Serialization.XmlSerializer" /> must serialize the class member as an XML attribute.
Indicates that a public field or property represents an XML element when the <see cref="T:System.Xml.Serialization.XmlSerializer" /> serializes or deserializes the object that contains it.
Controls how the <see cref="T:System.Xml.Serialization.XmlSerializer" /> serializes an enumeration member.
Instructs the <see cref="M:System.Xml.Serialization.XmlSerializer.Serialize(System.IO.TextWriter,System.Object)" /> method of the <see cref="T:System.Xml.Serialization.XmlSerializer" /> not to serialize the public field or public read/write property value.
Specifies that the target property, parameter, return value, or class member contains prefixes associated with namespaces that are used within an XML document.
Controls XML serialization of the attribute target as an XML root element.
When applied to a type, stores the name of a static method of the type that returns an XML schema and a <see cref="T:System.Xml.XmlQualifiedName" /> (or <see cref="T:System.Xml.Schema.XmlSchemaType" /> for anonymous types) that controls the serialization of the type.
Contains the XML namespaces and prefixes that the <see cref="T:System.Xml.Serialization.XmlSerializer" /> uses to generate qualified names in an XML-document instance.
Indicates to the <see cref="T:System.Xml.Serialization.XmlSerializer" /> that the member must be treated as XML text when the class that contains it is serialized or deserialized.

System.​Xml.​XPath

interface IXPathNavigable
Provides an accessor to the <see cref="T:System.Xml.XPath.XPathNavigator" /> class.
Specifies the sort order for uppercase and lowercase letters.
Specifies the data type used to determine sort order.
Specifies the sort order.
Provides a typed class that represents a compiled XPath expression.
class XPathItem
Represents an item in the XQuery 1.0 and XPath 2.0 Data Model.
Defines the namespace scope.
Provides a cursor model for navigating and editing XML data.
Provides an iterator over a selected set of nodes.
Defines the XPath node types that can be returned from the <see cref="T:System.Xml.XPath.XPathNavigator" /> class.
Specifies the return type of the XPath expression.

System.​Xml.​Xsl

Provides an interface to a given function defined in the Extensible Stylesheet Language for Transformations (XSLT) style sheet during runtime execution.
Provides an interface to a given variable that is defined in the style sheet during runtime execution.
Transforms XML data using an XSLT style sheet.
Contains a variable number of arguments which are either XSLT parameters or extension objects.
The exception that is thrown by the Load method when an error is found in the XSLT style sheet.
class XsltContext
Encapsulates the current execution context of the Extensible Stylesheet Language for Transformations (XSLT) processor allowing XML Path Language (XPath) to resolve functions, parameters, and namespaces within XPath expressions.
The exception that is thrown when an error occurs while processing an XSLT transformation.
Provides data for the <see cref="E:System.Xml.Xsl.XsltArgumentList.XsltMessageEncountered" /> event.
Represents the method that will handle the <see cref="E:System.Xml.Xsl.XsltArgumentList.XsltMessageEncountered" /> event.
class XslTransform
Transforms XML data using an Extensible Stylesheet Language for Transformations (XSLT) style sheet.
class XsltSettings
Specifies the XSLT features to support during execution of the XSLT style sheet.