Namespace: System.Xml.Linq
This namespace provides support for Language Integrated Query (LINQ) to XML.
LINQ to XML is an in-memory XML programming model. It allows you to represent an XML document as an object model that you can query using LINQ.
It offers a more unified and simpler API for working with XML compared to the Document Object Model (DOM).
Classes
Represents an attribute of an XElement.
Represents an XContainer node that contains CDATA.
Represents an XML comment.
Represents an XML node that can contain other XML nodes.
Represents the XML declaration of an XML document.
Represents an XML document.
Represents an XML document type declaration.
Represents an XML element.
Represents an XML element or attribute name.
Represents a node in an XML tree.
Compares two XML nodes for equality.
Represents a node in an XML tree.
Compares two XObjects for equality.
Represents a processing instruction.
Represents text content in an XML node.
Interfaces
Provides information about the line number and line position of an XML node.
Resolves XML namespaces.
Extension Methods (in System.Xml.Linq)
Extension method to get the child elements of an XContainer.
Extension method to get the attributes of an XElement.
Extension method to get all descendant nodes of an XContainer.
Extension method to get all descendant nodes and the current node of an XContainer.
Extension method to get all nodes before the current node in its parent.
Extension method to get all nodes after the current node in its parent.
Extension method to get all ancestors of an XElement.
Extension method to get all ancestors and the current element.
Extension method to get all nodes in document order.