Export (0) Print
Expand All

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 Extensions Contains the LINQ to XML extension methods.
Public class Supported by Portable Class Library XAttribute Represents an XML attribute.
Public class Supported by Portable Class Library XCData Represents a text node that contains CDATA.
Public class Supported by Portable Class Library XComment Represents an XML comment.
Public class Supported by Portable Class Library XContainer Represents a node that can contain other nodes.
Public class Supported by Portable Class Library XDeclaration Represents an XML declaration.
Public class Supported by Portable Class Library 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 XDocumentType Represents an XML Document Type Definition (DTD).
Public class Supported by Portable Class Library 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 XName Represents a name of an XML element or attribute.
Public class Supported by Portable Class Library XNamespace Represents an XML namespace. This class cannot be inherited.
Public class Supported by Portable Class Library 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 XNodeDocumentOrderComparer Contains functionality to compare nodes for their document order. This class cannot be inherited.
Public class Supported by Portable Class Library XNodeEqualityComparer Compares nodes to determine whether they are equal. This class cannot be inherited.
Public class Supported by Portable Class Library XObject Represents a node or an attribute in an XML tree.
Public class Supported by Portable Class Library XObjectChangeEventArgs Provides data for the Changing and Changed events.
Public class Supported by Portable Class Library XProcessingInstruction Represents an XML processing instruction.
Public class Supported by Portable Class Library XStreamingElement Represents elements in an XML tree that supports deferred streaming output.
Public class Supported by Portable Class Library XText Represents a text node.

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

Reference

Other Resources

Show:
© 2015 Microsoft