Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

System.Xml.Linq Namespace

Contains the classes for LINQ to XML. LINQ to XML is an in-memory XML programming interface that enables you to modify XML documents efficiently and easily.

Using LINQ to XML, you can:

  • Load XML from files or streams.

  • Serialize XML to files or streams.

  • Create XML trees from scratch using functional construction.

  • Query XML trees using LINQ queries.

  • Manipulate in-memory XML trees.

  • Validate XML trees using XSD.

  • Use a combination of these features to transform XML trees from one shape into another.

  Class Description
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps Extensions Contains the LINQ to XML extension methods.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps XAttribute Represents an XML attribute.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps XCData Represents a text node that contains CDATA.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps XComment Represents an XML comment.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps XContainer Represents a node that can contain other nodes.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps XDeclaration Represents an XML declaration.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps XDocument Represents an XML document. For the components and usage of an XDocument object, see XDocument Class Overview.To browse the .NET Framework source code for this type, see the Reference Source.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps XDocumentType Represents an XML Document Type Definition (DTD).
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps XElement Represents an XML element. See XElement Class Overview and the Remarks section on this page for usage information and examples.To browse the .NET Framework source code for this type, see the Reference Source.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps XName Represents a name of an XML element or attribute.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps XNamespace Represents an XML namespace. This class cannot be inherited.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps XNode Represents the abstract concept of a node (element, comment, document type, processing instruction, or text node) in the XML tree.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps XNodeDocumentOrderComparer Contains functionality to compare nodes for their document order. This class cannot be inherited.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps XNodeEqualityComparer Compares nodes to determine whether they are equal. This class cannot be inherited.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps XObject Represents a node or an attribute in an XML tree.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps XObjectChangeEventArgs Provides data for the Changing and Changed events.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps XProcessingInstruction Represents an XML processing instruction.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps XStreamingElement Represents elements in an XML tree that supports deferred streaming output.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps XText Represents a text node.

  Enumeration Description
Public enumeration Supported by Portable Class Library Supported in .NET for Windows Store apps LoadOptions Specifies load options when parsing XML.
Public enumeration Supported by Portable Class Library Supported in .NET for Windows Store apps ReaderOptions Specifies whether to omit duplicate namespaces when loading an XDocument with an XmlReader.
Public enumeration Supported by Portable Class Library Supported in .NET for Windows Store apps SaveOptions Specifies serialization options.
Public enumeration Supported by Portable Class Library Supported in .NET for Windows Store apps XObjectChange Specifies the event type when an event is raised for an XObject.

Reference

Other Resources

Show:
© 2014 Microsoft