Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5

  Switch on low bandwidth view
.NET Framework Class Library
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.

  ClassDescription
Public classExtensions Contains the LINQ to XML extension methods.
Public classXAttribute Represents an XML attribute.
Public classXCData Represents a text node that contains CDATA.
Public classXComment Represents an XML comment.
Public classXContainer Represents a node that can contain other nodes.
Public classXDeclaration Represents an XML declaration.
Public classXDocument Represents an XML document.
Public classXDocumentType Represents an XML Document Type Definition (DTD).
Public classXElement Represents an XML element.
Public classXName Represents a name of an XML element or attribute.
Public classXNamespace Represents an XML namespace. This class cannot be inherited.
Public classXNodeRepresents the abstract concept of a node (element, comment, document type, processing instruction, or text node) in the XML tree.
Public classXNodeDocumentOrderComparer Contains functionality to compare nodes for their document order. This class cannot be inherited.
Public classXNodeEqualityComparer Compares nodes to determine whether they are equal. This class cannot be inherited.
Public classXObject Represents a node or an attribute in an XML tree.
Public classXObjectChangeEventArgs Provides data for the Changing and Changed events.
Public classXProcessingInstruction Represents an XML processing instruction.
Public classXStreamingElement Represents elements in an XML tree that supports deferred streaming output.
Public classXText Represents a text node.
  EnumerationDescription
Public enumerationLoadOptions Specifies load options when parsing XML.
Public enumerationSaveOptions Specifies serialization options.
Public enumerationXObjectChange Specifies the event type when an event is raised for an XObject.

Reference

Other Resources

Community Content   What is Community Content?
Add new content RSS  Annotations
System.Xml.Linq assembly reference      mike3717   |   Edit   |   Show History
What reference needs to be added for System.Xml.Linq? I get the "namespace 'Linq' does not exist in the namespace system.xml " error. Thanks.

Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker