Udostępnij za pośrednictwem


System.Xml namespaces

System.Xml and its child namespaces (System.Xml.Linq, System.Xml.Schema, and System.Xml.Serialization) contain types for processing XML.

This topic displays the types in the System.Xml namespaces that are included in the .NET for Windows Store apps. Note that the .NET for Windows Store apps does not include all the members of each type. For information about individual types, see the linked topics. The documentation for a type indicates which members are included in the .NET for Windows Store apps.

System.Xml namespace

Types supported in the .NET for Windows Store apps

Description

ConformanceLevel

Specifies the amount of input or output checking that the created XmlReader and XmlWriter objects perform.

DtdProcessing

Specifies the options for processing DTDs. The DtdProcessing enumeration is used by XmlReaderSettings.

IXmlDictionary

An interface that defines the contract that an Xml dictionary must implement to be used by XmlDictionaryReader and XmlDictionaryWriter implementations.

IXmlLineInfo

Provides an interface to enable a class to return line and position information.

IXmlNamespaceResolver

Provides read-only access to a set of prefix and namespace mappings.

NamespaceHandling

Specifies whether to remove duplicate namespace declarations in the XmlWriter.

NameTable

Implements a single-threaded XmlNameTable.

NewLineHandling

Specifies how to handle line breaks.

ReadState

Specifies the state of the reader.

UniqueId

A unique identifier optimized for Guids.

WriteState

Specifies the state of the XmlWriter.

XmlBinaryReaderSession

Enables optimized strings to be managed in a dynamic way.

XmlBinaryWriterSession

Enables using a dynamic dictionary to compress common strings that appear in a message and maintain state.

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.

XmlDictionary

Implements a dictionary used to optimize Windows Communication Foundation (WCF)’s XML reader/writer implementations.

XmlDictionaryReader

An abstract class that the Windows Communication Foundation (WCF) derives from to do serialization and deserialization.

XmlDictionaryReaderQuotas

Contains configurable quota values for XmlDictionaryReaders.

XmlDictionaryString

Represents an entry stored in a XmlDictionary.

XmlDictionaryWriter

An abstract class that the Windows Communication Foundation (WCF) derives from to do serialization and deserialization.

XmlException

Returns detailed information about the last exception.

XmlNamespaceManager

Resolves, adds, and removes namespaces to a collection and provides scope management for these namespaces.

XmlNamespaceScope

Defines the namespace scope.

XmlNameTable

Table of atomized string objects.

XmlNodeType

Specifies the type of node.

XmlParserContext

Provides all the context information required by the XmlReader to parse an XML fragment.

XmlQualifiedName

Represents an XML qualified name.

XmlReader

Represents a reader that provides fast, non-cached, forward-only access to XML data.

XmlReaderSettings

Specifies a set of features to support on the XmlReader object created by the Create method.

XmlSpace

Specifies the current xml:space scope.

XmlWriter

Represents a writer that provides a fast, non-cached, forward-only means of generating streams or files containing XML data.

XmlWriterSettings

Specifies a set of features to support on the XmlWriter object created by the Create method.

System.Xml.Linq namespace

Types supported in the .NET for Windows Store apps

Description

Extensions

Contains the LINQ to XML extension methods.

LoadOptions

Specifies load options when parsing XML.

ReaderOptions

Specifies whether to omit duplicate namespaces when loading an XDocument with an XmlReader.

SaveOptions

Specifies serialization options.

XAttribute

Represents an XML attribute.

XCData

Represents a text node that contains CDATA.

XComment

Represents an XML comment.

XContainer

Represents a node that can contain other nodes.

XDeclaration

Represents an XML declaration.

XDocument

Represents an XML document.

XDocumentType

Represents an XML Document Type Definition (DTD).

XElement

Represents an XML element.

XName

Represents a name of an XML element or attribute.

XNamespace

Represents an XML namespace. This class cannot be inherited.

XNode

Represents the abstract concept of a node (element, comment, document type, processing instruction, or text node) in the XML tree.

XNodeDocumentOrderComparer

Contains functionality to compare nodes for their document order. This class cannot be inherited.

XNodeEqualityComparer

Compares nodes to determine whether they are equal. This class cannot be inherited.

XObject

Represents a node or an attribute in an XML tree.

XObjectChange

Specifies the event type when an event is raised for an XObject.

XObjectChangeEventArgs

Provides data for the Changing and Changed events.

XProcessingInstruction

Represents an XML processing instruction.

XStreamingElement

Represents elements in an XML tree that supports deferred streaming output.

XText

Represents a text node.

System.Xml.Schema namespace

Types supported in the .NET for Windows Store apps

Description

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 specifications.

XmlSchemaForm

Indicates if attributes or elements need to be qualified with a namespace prefix.

System.Xml.Serialization namespace

Types supported in the .NET for Windows Store apps

Description

IXmlSerializable

Provides custom formatting for XML serialization and deserialization.

XmlAnyAttributeAttribute

Specifies that the member (a field that returns an array of XmlAttribute objects) can contain any XML attributes.

XmlAnyElementAttribute

Specifies that the member (a field that returns an array of XmlElement or XmlNode objects) contains objects that represent any XML element that has no corresponding member in the object being serialized or deserialized.

XmlAnyElementAttributes

Represents a collection of XmlAnyElementAttribute objects.

XmlArrayAttribute

Specifies that the XmlSerializer must serialize a particular class member as an array of XML elements.

XmlArrayItemAttribute

Specifies the derived types that the XmlSerializer can place in a serialized array.

XmlArrayItemAttributes

Represents a collection of XmlArrayItemAttribute objects.

XmlAttributeAttribute

Specifies that the XmlSerializer must serialize the class member as an XML attribute.

XmlAttributeOverrides

Allows you to override property, field, and class attributes when you use the XmlSerializer to serialize or deserialize an object.

XmlAttributes

Represents a collection of attribute objects that control how the XmlSerializer serializes and deserializes an object.

XmlChoiceIdentifierAttribute

Specifies that the member can be further detected by using an enumeration.

XmlElementAttribute

Indicates that a public field or property represents an XML element when the XmlSerializer serializes or deserializes the object that contains it.

XmlElementAttributes

Represents a collection of XmlElementAttribute objects used by the XmlSerializer to override the default way it serializes a class.

XmlEnumAttribute

Controls how the XmlSerializer serializes an enumeration member.

XmlIgnoreAttribute

Instructs the Serialize method of the XmlSerializer not to serialize the public field or public read/write property value.

XmlIncludeAttribute

Allows the XmlSerializer to recognize a type when it serializes or deserializes an object.

XmlNamespaceDeclarationsAttribute

Specifies that the target property, parameter, return value, or class member contains prefixes associated with namespaces that are used within an XML document.

XmlRootAttribute

Controls XML serialization of the attribute target as an XML root element.

XmlSchemaProviderAttribute

When applied to a type, stores the name of a static method of the type that returns an XML schema and a XmlQualifiedName (or XmlSchemaType for anonymous types) that controls the serialization of the type.

XmlSerializer

Serializes and deserializes objects into and from XML documents. The XmlSerializer enables you to control how objects are encoded into XML.

XmlSerializerNamespaces

Contains the XML namespaces and prefixes that the XmlSerializer uses to generate qualified names in an XML-document instance.

XmlTextAttribute

Indicates to the XmlSerializer that the member must be treated as XML text when the class that contains it is serialized or deserialized.

XmlTypeAttribute

Controls the XML schema that is generated when the attribute target is serialized by the XmlSerializer.

See Also

Concepts

.NET for Windows Store apps APIs