System.Xml.Linq Contains the LINQ to XML extension methods. Returns a collection of elements that contains the ancestors of every node in the source collection. An of that contains the source collection. The type of the objects in , constrained to . An of that contains the ancestors of every node in the source collection. Returns a filtered collection of elements that contains the ancestors of every node in the source collection. Only elements that have a matching are included in the collection. An of that contains the source collection. The to match. The type of the objects in , constrained to . An of that contains the ancestors of every node in the source collection. Only elements that have a matching are included in the collection. Returns a collection of elements that contains every element in the source collection, and the ancestors of every element in the source collection. An of that contains the source collection. An of that contains every element in the source collection, and the ancestors of every element in the source collection. Returns a filtered collection of elements that contains every element in the source collection, and the ancestors of every element in the source collection. Only elements that have a matching are included in the collection. An of that contains the source collection. The to match. An of that contains every element in the source collection, and the ancestors of every element in the source collection. Only elements that have a matching are included in the collection. Returns a collection of the attributes of every element in the source collection. An of that contains the source collection. An of that contains the attributes of every element in the source collection. Returns a filtered collection of the attributes of every element in the source collection. Only elements that have a matching are included in the collection. An of that contains the source collection. The to match. An of that contains a filtered collection of the attributes of every element in the source collection. Only elements that have a matching are included in the collection. Returns a collection of the descendant nodes of every document and element in the source collection. An of that contains the source collection. The type of the objects in , constrained to . An of of the descendant nodes of every document and element in the source collection. Returns a collection of nodes that contains every element in the source collection, and the descendant nodes of every element in the source collection. An of that contains the source collection. An of that contains every element in the source collection, and the descendant nodes of every element in the source collection. Returns a collection of elements that contains the descendant elements of every element and document in the source collection. An of that contains the source collection. The type of the objects in , constrained to . An of that contains the descendant elements of every element and document in the source collection. Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. Only elements that have a matching are included in the collection. An of that contains the source collection. The to match. The type of the objects in , constrained to . An of that contains the descendant elements of every element and document in the source collection. Only elements that have a matching are included in the collection. Returns a collection of elements that contains every element in the source collection, and the descendent elements of every element in the source collection. An of that contains the source collection. An of that contains every element in the source collection, and the descendent elements of every element in the source collection. Returns a filtered collection of elements that contains every element in the source collection, and the descendents of every element in the source collection. Only elements that have a matching are included in the collection. An of that contains the source collection. The to match. An of that contains every element in the source collection, and the descendents of every element in the source collection. Only elements that have a matching are included in the collection. Returns a collection of the child elements of every element and document in the source collection. An of that contains the source collection. The type of the objects in , constrained to . An of of the child elements of every element or document in the source collection. Returns a filtered collection of the child elements of every element and document in the source collection. Only elements that have a matching are included in the collection. An of that contains the source collection. The to match. The type of the objects in , constrained to . An of of the child elements of every element and document in the source collection. Only elements that have a matching are included in the collection. Returns a collection of nodes that contains all nodes in the source collection, sorted in document order. An of that contains the source collection. The type of the objects in , constrained to . An of that contains all nodes in the source collection, sorted in document order. Returns a collection of the child nodes of every document and element in the source collection. An of that contains the source collection. The type of the objects in , constrained to . An of of the child nodes of every document and element in the source collection. Removes every attribute in the source collection from its parent element. An of that contains the source collection. Removes every node in the source collection from its parent node. An of that contains the source collection. The type of the objects in , constrained to . Specifies load options when parsing XML. Does not preserve insignificant white space or load base URI and line information. Preserves insignificant white space while parsing. Requests the base URI information from the , and makes it available via the property. Requests the line information from the and makes it available via properties on . Specifies whether to omit duplicate namespaces when loading an with an . No reader options specified. Omit duplicate namespaces when loading the . Specifies serialization options. Preserve all insignificant white space while serializing. Format (indent) the XML while serializing. Remove the duplicate namespace declarations while serializing. Represents an XML attribute. Initializes a new instance of the class from another object. An object to copy from. The parameter is . Initializes a new instance of the class from the specified name and value. The of the attribute. An containing the value of the attribute. The or parameter is . Gets an empty collection of attributes. An of containing an empty collection. Determines if this attribute is a namespace declaration. if this attribute is a namespace declaration; otherwise . Gets the expanded name of this attribute. An containing the name of this attribute. Gets the next attribute of the parent element. An containing the next attribute of the parent element. Gets the node type for this node. The node type. For objects, this value is . Cast the value of this to a . The to cast to . A that contains the content of this . The attribute does not contain a valid value. The parameter is . Cast the value of this to a . The to cast to . A that contains the content of this . The attribute does not contain a valid value. The parameter is . Cast the value of this to a . The to cast to . A that contains the content of this . The attribute does not contain a valid value. The parameter is . Cast the value of this to a . The to cast to . A that contains the content of this . The attribute does not contain a valid value. The parameter is . Cast the value of this to a . The to cast to . A that contains the content of this . The attribute does not contain a valid value. The parameter is . Cast the value of this to a . The to cast to . A that contains the content of this . The attribute does not contain a valid value. The parameter is . Cast the value of this to an . The to cast to . A that contains the content of this . The attribute does not contain a valid value. The parameter is . Cast the value of this to an . The to cast to . A that contains the content of this . The attribute does not contain a valid value. The parameter is . Cast the value of this to a of . The to cast to of . A of that contains the content of this . The attribute does not contain a valid value. Cast the value of this to a of . The to cast to a of . A of that contains the content of this . The attribute does not contain a valid value. Cast the value of this to a of . The to cast to a of . A of that contains the content of this . The attribute does not contain a valid value. Cast the value of this to a of . The to cast to of . A of that contains the content of this . The attribute does not contain a valid value. Cast the value of this to a of . The to cast to of . A of that contains the content of this . The attribute does not contain a valid value. Cast the value of this to a of . The to cast to a of . A of that contains the content of this . The attribute does not contain a valid value. Cast the value of this to a of . The to cast to a of . A of that contains the content of this . Cast the value of this to a of . The to cast to a of . A of that contains the content of this . The attribute does not contain a valid value. Cast the value of this to a of . The to cast to of . A of that contains the content of this . The attribute does not contain a valid value. Cast the value of this to a of . The to cast to a of . A of that contains the content of this . The attribute does not contain a valid value. Cast the value of this to a of . The to cast to a of . A of that contains the content of this . The attribute does not contain a valid value. Cast the value of this to a of . The to cast to a of . A of that contains the content of this . The attribute does not contain a valid value. Cast the value of this to a . The to cast to . A that contains the content of this . The attribute does not contain a valid value. The parameter is . Cast the value of this to a . The to cast to . A that contains the content of this . Cast the value of this to a . The to cast to . A that contains the content of this . The attribute does not contain a valid value. The parameter is . Cast the value of this to a . The to cast to . A that contains the content of this . The attribute does not contain a valid value. The parameter is . Cast the value of this to a . The to cast to . A that contains the content of this . The attribute does not contain a valid value. The parameter is . Gets the previous attribute of the parent element. An containing the previous attribute of the parent element. Removes this attribute from its parent element. The parent element is . Sets the value of this attribute. The value to assign to this attribute. The parameter is . The is an . Converts the current object to a string representation. A containing the XML text representation of an attribute and its value. Gets or sets the value of this attribute. A containing the value of this attribute. When setting, the is . Represents a text node that contains CDATA. Initializes a new instance of the class. A string that contains the value of the node. Initializes a new instance of the class. The node to copy from. Gets the node type for this node. The node type. For objects, this value is . Writes this CDATA object to an . An into which this method will write. Represents an XML comment. Initializes a new instance of the class with the specified string content. A string that contains the contents of the new object. The parameter is . Initializes a new instance of the class from an existing comment node. The node to copy from. The parameter is . Gets the node type for this node. The node type. For objects, this value is . Gets or sets the string value of this comment. A that contains the string value of this comment. The is . Write this comment to an . An into which this method will write. Represents a node that can contain other nodes. Adds the specified content as children of this . A content object containing simple content or a collection of content objects to be added. Adds the specified content as children of this . A parameter list of content objects. Adds the specified content as the first children of this document or element. A content object containing simple content or a collection of content objects to be added. Adds the specified content as the first children of this document or element. A parameter list of content objects. The parent is . Creates an that can be used to add nodes to the . An that is ready to have content written to it. Returns a collection of the descendant nodes for this document or element, in document order. An of containing the descendant nodes of the , in document order. Returns a collection of the descendant elements for this document or element, in document order. An of containing the descendant elements of the . Returns a filtered collection of the descendant elements for this document or element, in document order. Only elements that have a matching are included in the collection. The to match. An of containing the descendant elements of the that match the specified . Gets the first (in document order) child element with the specified . The to match. A that matches the specified , or . Returns a collection of the child elements of this element or document, in document order. An of containing the child elements of this , in document order. Returns a filtered collection of the child elements of this element or document, in document order. Only elements that have a matching are included in the collection. The to match. An of containing the children of the that have a matching , in document order. Gets the first child node of this node. An containing the first child node of the . Gets the last child node of this node. An containing the last child node of the . Returns a collection of the child nodes of this element or document, in document order. An of containing the contents of this , in document order. Removes the child nodes from this document or element. Replaces the children nodes of this document or element with the specified content. A content object containing simple content or a collection of content objects that replace the children nodes. Replaces the children nodes of this document or element with the specified content. A parameter list of content objects. Represents an XML declaration. Initializes a new instance of the class with the specified version, encoding, and standalone status. The version of the XML, usually "1.0". The encoding for the XML document. A string containing "yes" or "no" that specifies whether the XML is standalone or requires external entities to be resolved. Initializes a new instance of the class from another object. The used to initialize this object. Gets or sets the encoding for this document. A containing the code page name for this document. Gets or sets the standalone property for this document. A containing the standalone property for this document. Provides the declaration as a formatted string. A that contains the formatted XML string. Gets or sets the version property for this document. A containing the version property for this document. Represents an XML document. For the components and usage of an object, see XDocument Class Overview. Initializes a new instance of the class. Initializes a new instance of the class with the specified content. A parameter list of content objects to add to this document. Initializes a new instance of the class with the specified and content. An for the document. The content of the document. Initializes a new instance of the class from an existing object. The object that will be copied. Gets or sets the XML declaration for this document. An that contains the XML declaration for this document. Gets the Document Type Definition (DTD) for this document. A that contains the DTD for this document. Creates a new instance by using the specified stream. The stream that contains the XML data. An object that reads the data that is contained in the stream. Creates a new instance by using the specified stream, optionally preserving white space, setting the base URI, and retaining line information. The stream containing the XML data. A that specifies whether to load base URI and line information. An object that reads the data that is contained in the stream. Creates a new from a . A that contains the content for the . An that contains the contents of the specified . Creates a new from a , optionally preserving white space, setting the base URI, and retaining line information. A that contains the content for the . A that specifies white space behavior, and whether to load base URI and line information. An that contains the XML that was read from the specified . Creates a new from a file. A URI string that references the file to load into a new . An that contains the contents of the specified file. Creates a new from a file, optionally preserving white space, setting the base URI, and retaining line information. A URI string that references the file to load into a new . A that specifies white space behavior, and whether to load base URI and line information. An that contains the contents of the specified file. Creates a new from an . A that contains the content for the . An that contains the contents of the specified . Loads an from an , optionally setting the base URI, and retaining line information. A that will be read for the content of the . A that specifies whether to load base URI and line information. An that contains the XML that was read from the specified . Gets the node type for this node. The node type. For objects, this value is . Creates a new from a string. A string that contains XML. An populated from the string that contains XML. Creates a new from a string, optionally preserving white space, setting the base URI, and retaining line information. A string that contains XML. A that specifies white space behavior, and whether to load base URI and line information. An populated from the string that contains XML. Gets the root element of the XML Tree for this document. The root of the XML tree. Outputs this to the specified . The stream to output this to. Outputs this to the specified , optionally specifying formatting behavior. The stream to output this to. A that specifies formatting behavior. Serialize this to a . A that the will be written to. Serialize this to a , optionally disabling formatting. The to output the XML to. A that specifies formatting behavior. Serialize this to a file, overwriting an existing file, if it exists. A string that contains the name of the file. Serialize this to a file, optionally disabling formatting. A string that contains the name of the file. A that specifies formatting behavior. Serialize this to an . A that the will be written to. Write this document to an . An into which this method will write. Represents an XML Document Type Definition (DTD). Initializes an instance of the class. A that contains the qualified name of the DTD, which is the same as the qualified name of the root element of the XML document. A that contains the public identifier of an external public DTD. A that contains the system identifier of an external private DTD. A that contains the internal subset for an internal DTD. Initializes an instance of the class from another object. An object to copy from. Gets or sets the internal subset for this Document Type Definition (DTD). A that contains the internal subset for this Document Type Definition (DTD). Gets or sets the name for this Document Type Definition (DTD). A that contains the name for this Document Type Definition (DTD). Gets the node type for this node. The node type. For objects, this value is . Gets or sets the public identifier for this Document Type Definition (DTD). A that contains the public identifier for this Document Type Definition (DTD). Gets or sets the system identifier for this Document Type Definition (DTD). A that contains the system identifier for this Document Type Definition (DTD). Write this to an . An into which this method will write. Represents an XML element. See XElement Class Overview and the Remarks section on this page for usage information and examples. Initializes a new instance of the class from another object. An object to copy from. Initializes a new instance of the class with the specified name. An that contains the name of the element. Initializes a new instance of the class with the specified name and content. An that contains the element name. The contents of the element. Initializes a new instance of the class with the specified name and content. An that contains the element name. The initial content of the element. Initializes a new instance of the class from an object. An that contains unevaluated queries that will be iterated for the contents of this . Returns a collection of elements that contain this element, and the ancestors of this element. An of of elements that contain this element, and the ancestors of this element. Returns a filtered collection of elements that contain this element, and the ancestors of this element. Only elements that have a matching are included in the collection. The to match. An of that contain this element, and the ancestors of this element. Only elements that have a matching are included in the collection. Returns the of this that has the specified . The of the to get. An that has the specified ; if there is no attribute with the specified name. Returns a collection of attributes of this element. An of of attributes of this element. Returns a filtered collection of attributes of this element. Only elements that have a matching are included in the collection. The to match. An of that contains the attributes of this element. Only elements that have a matching are included in the collection. Returns a collection of nodes that contain this element, and all descendant nodes of this element, in document order. An of that contain this element, and all descendant nodes of this element, in document order. Returns a collection of elements that contain this element, and all descendant elements of this element, in document order. An of of elements that contain this element, and all descendant elements of this element, in document order. Returns a filtered collection of elements that contain this element, and all descendant elements of this element, in document order. Only elements that have a matching are included in the collection. The to match. An of that contain this element, and all descendant elements of this element, in document order. Only elements that have a matching are included in the collection. Gets an empty collection of elements. An of that contains an empty collection. Gets the first attribute of this element. An that contains the first attribute of this element. Gets the default of this . An that contains the default namespace of this . Gets the namespace associated with a particular prefix for this . A string that contains the namespace prefix to look up. An for the namespace associated with the prefix for this . Gets the prefix associated with a namespace for this . An to look up. A that contains the namespace prefix. Gets a value indicating whether this element has at least one attribute. if this element has at least one attribute; otherwise . Gets a value indicating whether this element has at least one child element. if this element has at least one child element; otherwise . Gets a value indicating whether this element contains no content. if this element contains no content; otherwise . Gets the last attribute of this element. An that contains the last attribute of this element. Creates a new instance by using the specified stream. The stream that contains the XML data. An object used to read the data that is contained in the stream. Creates a new instance by using the specified stream, optionally preserving white space, setting the base URI, and retaining line information. The stream containing the XML data. A object that specifies whether to load base URI and line information. An object used to read the data that the stream contains. Loads an from a . A that will be read for the content. An that contains the XML that was read from the specified . Loads an from a , optionally preserving white space and retaining line information. A that will be read for the content. A that specifies white space behavior, and whether to load base URI and line information. An that contains the XML that was read from the specified . Loads an from a file. A URI string referencing the file to load into a new . An that contains the contents of the specified file. Loads an from a file, optionally preserving white space, setting the base URI, and retaining line information. A URI string referencing the file to load into an . A that specifies white space behavior, and whether to load base URI and line information. An that contains the contents of the specified file. Loads an from an . A that will be read for the content of the . An that contains the XML that was read from the specified . Loads an from an , optionally preserving white space, setting the base URI, and retaining line information. A that will be read for the content of the . A that specifies white space behavior, and whether to load base URI and line information. An that contains the XML that was read from the specified . Gets or sets the name of this element. An that contains the name of this element. Gets the node type for this node. The node type. For objects, this value is . Cast the value of this to a . The to cast to . A that contains the content of this . The element does not contain a valid value. The parameter is . Cast the value of this to a . The to cast to . A that contains the content of this . The element does not contain a valid value. The parameter is . Cast the value of this to a . The to cast to . A that contains the content of this . The element does not contain a valid value. The parameter is . Cast the value of this to a . The to cast to . A that contains the content of this . The element does not contain a valid value. The parameter is . Cast the value of this to a . The to cast to . A that contains the content of this . The element does not contain a valid value. The parameter is . Cast the value of this to a . The to cast to . A that contains the content of this . The element does not contain a valid value. The parameter is . Cast the value of this to an . The to cast to . A that contains the content of this . The element does not contain a valid value. The parameter is . Cast the value of this to an . The to cast to . A that contains the content of this . The element does not contain a valid value. The parameter is . Cast the value of this to a of . The to cast to of . A of that contains the content of this . The element is not and does not contain a valid value. Cast the value of this to a of . The to cast to of . A of that contains the content of this . The element is not and does not contain a valid value. Cast the value of this to a of . The to cast to an of . A of that contains the content of this . The element is not and does not contain a valid value. Cast the value of this to a of . The to cast to of . A of that contains the content of this . The element is not and does not contain a valid value. Cast the value of this to a of . The to cast to of . A of that contains the content of this . The element is not and does not contain a valid value. Cast the value of this to a of . The to cast to of . A of that contains the content of this . The element is not and does not contain a valid value. Cast the value of this to a of . The to cast to of . A of that contains the content of this . The element is not and does not contain a valid value. Cast the value of this to a of . The to cast to of . A of that contains the content of this . The element is not and does not contain a valid value. Cast the value of this to a of . The to cast to of . A of that contains the content of this . The element is not and does not contain a valid value. Cast the value of this to a of . The to cast to of . A of that contains the content of this . The element is not and does not contain a valid value. Cast the value of this to a of . The to cast to of . A of that contains the content of this . The element is not and does not contain a valid value. Cast the value of this to a of . The to cast to of . A of that contains the content of this . The element is not and does not contain a valid value. Cast the value of this to a . The to cast to . A that contains the content of this . The element does not contain a valid value. The parameter is . Cast the value of this to a . The to cast to . A that contains the content of this . Cast the value of this to a . The to cast to . A that contains the content of this . The element does not contain a valid value. The parameter is . Cast the value of this to a . The to cast to . A that contains the content of this . The element does not contain a valid value. The parameter is . Cast the value of this to a . The to cast to . A that contains the content of this . The element does not contain a valid value. The parameter is . Load an from a string that contains XML. A that contains XML. An populated from the string that contains XML. Load an from a string that contains XML, optionally preserving white space and retaining line information. A that contains XML. A that specifies white space behavior, and whether to load base URI and line information. An populated from the string that contains XML. Removes nodes and attributes from this . Removes the attributes of this . Replaces the child nodes and the attributes of this element with the specified content. The content that will replace the child nodes and attributes of this element. Replaces the child nodes and the attributes of this element with the specified content. A parameter list of content objects. Replaces the attributes of this element with the specified content. The content that will replace the attributes of this element. Replaces the attributes of this element with the specified content. A parameter list of content objects. Outputs this to the specified . The stream to output this to. Outputs this to the specified , optionally specifying formatting behavior. The stream to output this to. A object that specifies formatting behavior. Serialize this element to a . A that the will be written to. Serialize this element to a , optionally disabling formatting. The to output the XML to. A that specifies formatting behavior. Serialize this element to a file. A that contains the name of the file. Serialize this element to a file, optionally disabling formatting. A that contains the name of the file. A that specifies formatting behavior. Serialize this element to an . A that the will be written to. Sets the value of an attribute, adds an attribute, or removes an attribute. An that contains the name of the attribute to change. The value to assign to the attribute. The attribute is removed if the value is . Otherwise, the value is converted to its string representation and assigned to the property of the attribute. The is an instance of . Sets the value of a child element, adds a child element, or removes a child element. An that contains the name of the child element to change. The value to assign to the child element. The child element is removed if the value is . Otherwise, the value is converted to its string representation and assigned to the property of the child element. The is an instance of . Sets the value of this element. The value to assign to this element. The value is converted to its string representation and assigned to the property. The is . The is an . Gets an XML schema definition that describes the XML representation of this object. An that describes the XML representation of the object that is produced by the method and consumed by the method. Generates an object from its XML representation. The from which the object is deserialized. Converts an object into its XML representation. The to which this object is serialized. Gets or sets the concatenated text contents of this element. A that contains all of the text content of this element. If there are multiple text nodes, they will be concatenated. Write this element to an . An into which this method will write. Represents a name of an XML element or attribute. Determines whether the specified is equal to this . The to compare to the current . if the specified is equal to the current ; otherwise . Gets an object from an expanded name. A that contains an expanded XML name in the format {namespace}localname. An object constructed from the expanded name. Gets an object from a local name and a namespace. A local (unqualified) name. An XML namespace. An object created from the specified local name and namespace. Gets a hash code for this . An that contains the hash code for the . Gets the local (unqualified) part of the name. A that contains the local (unqualified) part of the name. Gets the namespace part of the fully qualified name. An that contains the namespace part of the name. Returns the URI of the for this . The URI of the for this . Returns a value indicating whether two instances of are equal. The first to compare. The second to compare. if and are equal; otherwise . Converts a string formatted as an expanded XML name (that is,{namespace}localname) to an object. A string that contains an expanded XML name in the format {namespace}localname. An object constructed from the expanded name. Returns a value indicating whether two instances of are not equal. The first to compare. The second to compare. if and are not equal; otherwise . Indicates whether the current is equal to the specified . The to compare with this . if this is equal to the specified , otherwise . Populates a with the data required to serialize the target object. The to populate with data. The destination (see ) for this serialization. Returns the expanded XML name in the format {namespace}localname. A that contains the expanded XML name in the format {namespace}localname. Represents an XML namespace. This class cannot be inherited. Determines whether the specified is equal to the current . The to compare to the current . A that indicates whether the specified is equal to the current . Gets an for the specified Uniform Resource Identifier (URI). A that contains a namespace URI. An created from the specified URI. Gets a hash code for this . An that contains the hash code for the . Returns an object created from this and the specified local name. A that contains a local name. An created from this and the specified local name. Gets the Uniform Resource Identifier (URI) of this namespace. A that contains the URI of the namespace. Gets the object that corresponds to no namespace. The that corresponds to no namespace. Combines an object with a local name to create an . An that contains the namespace. A that contains the local name. The new constructed from the namespace and local name. Returns a value indicating whether two instances of are equal. The first to compare. The second to compare. A that indicates whether and are equal. Converts a string containing a Uniform Resource Identifier (URI) to an . A that contains the namespace URI. An constructed from the URI string. Returns a value indicating whether two instances of are not equal. The first to compare. The second to compare. A that indicates whether and are not equal. Returns the URI of this . The URI of this . Gets the object that corresponds to the XML URI (http://www.w3.org/XML/1998/namespace). The that corresponds to the XML URI (http://www.w3.org/XML/1998/namespace). Gets the object that corresponds to the xmlns URI (http://www.w3.org/2000/xmlns/). The that corresponds to the xmlns URI (http://www.w3.org/2000/xmlns/). Represents the abstract concept of a node (element, comment, document type, processing instruction, or text node) in the XML tree. Adds the specified content immediately after this node. A content object that contains simple content or a collection of content objects to be added after this node. The parent is . Adds the specified content immediately after this node. A parameter list of content objects. The parent is . Adds the specified content immediately before this node. A content object that contains simple content or a collection of content objects to be added before this node. The parent is . Adds the specified content immediately before this node. A parameter list of content objects. The parent is . Returns a collection of the ancestor elements of this node. An of of the ancestor elements of this node. Returns a filtered collection of the ancestor elements of this node. Only elements that have a matching are included in the collection. The to match. An of of the ancestor elements of this node. Only elements that have a matching are included in the collection. The nodes in the returned collection are in reverse document order. This method uses deferred execution. Compares two nodes to determine their relative XML document order. First to compare. Second to compare. An containing 0 if the nodes are equal; -1 if is before ; 1 if is after . The two nodes do not share a common ancestor. Creates an for this node. An that can be used to read this node and its descendants. Creates an with the options specified by the parameter. A object that specifies whether to omit duplicate namespaces. An object. Compares the values of two nodes, including the values of all descendant nodes. The first to compare. The second to compare. if the nodes are equal; otherwise . Gets a comparer that can compare the relative position of two nodes. An that can compare the relative position of two nodes. Returns a collection of the sibling elements after this node, in document order. An of of the sibling elements after this node, in document order. Returns a filtered collection of the sibling elements after this node, in document order. Only elements that have a matching are included in the collection. The to match. An of of the sibling elements after this node, in document order. Only elements that have a matching are included in the collection. Returns a collection of the sibling elements before this node, in document order. An of of the sibling elements before this node, in document order. Returns a filtered collection of the sibling elements before this node, in document order. Only elements that have a matching are included in the collection. The to match. An of of the sibling elements before this node, in document order. Only elements that have a matching are included in the collection. Gets a comparer that can compare two nodes for value equality. A that can compare two nodes for value equality. Determines if the current node appears after a specified node in terms of document order. The to compare for document order. if this node appears after the specified node; otherwise . Determines if the current node appears before a specified node in terms of document order. The to compare for document order. if this node appears before the specified node; otherwise . Gets the next sibling node of this node. The that contains the next sibling node. Returns a collection of the sibling nodes after this node, in document order. An of of the sibling nodes after this node, in document order. Returns a collection of the sibling nodes before this node, in document order. An of of the sibling nodes before this node, in document order. Gets the previous sibling node of this node. The that contains the previous sibling node. Creates an from an . An positioned at the node to read into this . An that contains the node and its descendant nodes that were read from the reader. The runtime type of the node is determined by the node type () of the first node encountered in the reader. The is not positioned on a recognized node type. The underlying throws an exception. Removes this node from its parent. The parent is . Replaces this node with the specified content. Content that replaces this node. Replaces this node with the specified content. A parameter list of the new content. Returns the indented XML for this node. A containing the indented XML. Returns the XML for this node, optionally disabling formatting. A that specifies formatting behavior. A containing the XML. Writes this node to an . An into which this method will write. Contains functionality to compare nodes for their document order. This class cannot be inherited. Initializes a new instance of the class. Compares two nodes to determine their relative document order. The first to compare. The second to compare. An that contains 0 if the nodes are equal; -1 if is before ; 1 if is after . The two nodes do not share a common ancestor. Compares two nodes to determine their relative document order. The first to compare. The second to compare. An that contains 0 if the nodes are equal; -1 if is before ; 1 if is after . The two nodes do not share a common ancestor. The two nodes are not derived from . Compares nodes to determine whether they are equal. This class cannot be inherited. Initializes a new instance of the class. Compares the values of two nodes. The first to compare. The second to compare. A indicating if the nodes are equal. Returns a hash code based on an . The to hash. A that contains a value-based hash code for the node. Compares the values of two nodes. The first to compare. The second to compare. if the nodes are equal; otherwise . Returns a hash code based on the value of a node. The node to hash. A that contains a value-based hash code for the node. Represents a node or an attribute in an XML tree. Adds an object to the annotation list of this . An object that contains the annotation to add. Gets the first annotation object of the specified type from this . The type of the annotation to retrieve. The that contains the first annotation object that matches the specified type, or if no annotation is of the specified type. Gets the first annotation object of the specified type from this . The type of the annotation to retrieve. The first annotation object that matches the specified type, or if no annotation is of the specified type. Gets a collection of annotations of the specified type for this . The type of the annotations to retrieve. An of that contains the annotations that match the specified type for this . Gets a collection of annotations of the specified type for this . The type of the annotations to retrieve. An that contains the annotations for this . Gets the base URI for this . A that contains the base URI for this . Raised when this or any of its descendants have changed. Raised when this or any of its descendants are about to change. Gets the for this . The for this . Gets the node type for this . The node type for this . Gets the parent of this . The parent of this . Removes the annotations of the specified type from this . The type of annotations to remove. Removes the annotations of the specified type from this . The type of annotations to remove. Gets a value indicating whether or not this has line information. if the has line information; otherwise, . Gets the line number that the underlying reported for this . An that contains the line number reported by the for this . Gets the line position that the underlying reported for this . An that contains the line position reported by the for this . Specifies the event type when an event is raised for an . An has been or will be added to an . An has been or will be renamed. An has been or will be removed from an . The value of an has been or will be changed. In addition, a change in the serialization of an empty element (either from an empty tag to start/end tag pair or vice versa) raises this event. Provides data for the and events. Initializes a new instance of the class. An that contains the event arguments for LINQ to XML events. Event argument for an change event. Event argument for a change event. Gets the type of change. An that contains the type of change. Event argument for a change event. Event argument for a change event. Represents an XML processing instruction. Initializes a new instance of the class. A containing the target application for this . The string data for this . The or parameter is . The does not follow the constraints of an XML name. Initializes a new instance of the class. The node to copy from. Gets or sets the string value of this processing instruction. A that contains the string value of this processing instruction. The string is . Gets the node type for this node. The node type. For objects, this value is . Gets or sets a string containing the target application for this processing instruction. A containing the target application for this processing instruction. The string is . The does not follow the constraints of an XML name. Writes this processing instruction to an . The to write this processing instruction to. Represents elements in an XML tree that supports deferred streaming output. Initializes a new instance of the class from the specified . An that contains the name of the element. Initializes a new instance of the class with the specified name and content. An that contains the element name. The contents of the element. Initializes a new instance of the class with the specified name and content. An that contains the element name. The contents of the element. Adds the specified content as children to this . Content to be added to the streaming element. Adds the specified content as children to this . Content to be added to the streaming element. Gets or sets the name of this streaming element. An that contains the name of this streaming element. Outputs this to the specified . The stream to output this to. Outputs this to the specified , optionally specifying formatting behavior. The stream to output this to. A object that specifies formatting behavior. Serialize this streaming element to a . A that the will be written to. Serialize this streaming element to a , optionally disabling formatting. The to output the XML to. A that specifies formatting behavior. Serialize this streaming element to a file. A that contains the name of the file. Serialize this streaming element to a file, optionally disabling formatting. A that contains the name of the file. A object that specifies formatting behavior. Serialize this streaming element to an . A that the will be written to. Returns the formatted (indented) XML for this streaming element. A containing the indented XML. Returns the XML for this streaming element, optionally disabling formatting. A that specifies formatting behavior. A containing the XML. Writes this streaming element to an . An into which this method will write. Represents a text node. Initializes a new instance of the class. The that contains the value of the node. Initializes a new instance of the class from another object. The node to copy from. Gets the node type for this node. The node type. For objects, this value is . Gets or sets the value of this node. A that contains the value of this node. Writes this node to an . An into which this method will write. This class contains the LINQ to XML extension methods for XSD validation. Gets the post-schema-validation infoset (PSVI) of a validated attribute. An that has been previously validated. A that contains the post-schema-validation infoset for an . Gets the post-schema-validation infoset (PSVI) of a validated element. An that has been previously validated. A that contains the post-schema-validation infoset (PSVI) for an . This method validates that an conforms to a specified and an . The to validate. An that specifies the sub-tree to validate. An to validate against. A for an event that occurs when the reader encounters validation errors. If , throws an exception upon validation errors. Thrown for XML Schema Definition Language (XSD) validation errors. Validates that an conforms to a specified and an , optionally populating the XML tree with the post-schema-validation infoset (PSVI). The to validate. An that specifies the sub-tree to validate. An to validate against. A for an event that occurs when the reader encounters validation errors. If , throws an exception upon validation errors. A indicating whether to populate the post-schema-validation infoset (PSVI). Thrown for XML Schema Definition Language (XSD) validation errors. This method validates that an conforms to an XSD in an . The to validate. An to validate against. A for an event that occurs when the reader encounters validation errors. If , throws an exception upon validation errors. Thrown for XML Schema Definition Language (XSD) validation errors. Validates that an conforms to an XSD in an , optionally populating the XML tree with the post-schema-validation infoset (PSVI). The to validate. An to validate against. A for an event that occurs when the reader encounters validation errors. If , throws an exception upon validation errors. A indicating whether to populate the post-schema-validation infoset (PSVI). Thrown for XML Schema Definition Language (XSD) validation errors. This method validates that an sub-tree conforms to a specified and an . The to validate. An that specifies the sub-tree to validate. An to validate against. A for an event that occurs when the reader encounters validation errors. If , throws an exception upon validation errors. Thrown for XML Schema Definition Language (XSD) validation errors. Validates that an sub-tree conforms to a specified and an , optionally populating the XML tree with the post-schema-validation infoset (PSVI). The to validate. An that specifies the sub-tree to validate. An to validate against. A for an event that occurs when the reader encounters validation errors. If , throws an exception upon validation errors. A indicating whether to populate the post-schema-validation infoset (PSVI). Thrown for XML Schema Definition Language (XSD) validation errors. This class contains the LINQ to XML extension methods that enable you to evaluate XPath expressions. Creates an for an . An that can process XPath queries. An that can process XPath queries. Creates an for an . The enables more efficient XPath expression processing. An that can process an XPath query. A to be used by . An that can process XPath queries. Evaluates an XPath expression. The on which to evaluate the XPath expression. A that contains an XPath expression. An object that can contain a , a , a , or an . Evaluates an XPath expression, resolving namespace prefixes using the specified . The on which to evaluate the XPath expression. A that contains an XPath expression. A for the namespace prefixes in the XPath expression. An object that contains the result of evaluating the expression. The object can be a , a , a , or an . Selects an using a XPath expression. The on which to evaluate the XPath expression. A that contains an XPath expression. An , or null. Selects an using a XPath expression, resolving namespace prefixes using the specified . The on which to evaluate the XPath expression. A that contains an XPath expression. An for the namespace prefixes in the XPath expression. An , or null. Selects a collection of elements using an XPath expression. The on which to evaluate the XPath expression. A that contains an XPath expression. An of that contains the selected elements. Selects a collection of elements using an XPath expression, resolving namespace prefixes using the specified . The on which to evaluate the XPath expression. A that contains an XPath expression. A for the namespace prefixes in the XPath expression. An of that contains the selected elements. Extends the class by providing a method for navigating and editing an XML node. Returns an accessor that allows you to navigate and edit the specified . The XML node to navigate. An interface that provides an accessor to the class.