System.Xml.Linq Contains the LINQ to XML extension methods. 2 Returns a collection of elements that contains the ancestors of every node in the source collection. An of 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 . 2 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 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 . 2 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 every element in the source collection, and the ancestors of every element in the source collection. An of that contains the source collection. 2 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 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. 2 Returns a collection of the attributes of every element in the source collection. An of that contains the attributes of every element in the source collection. An of that contains the source collection. 2 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 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. 2 Returns a collection of the descendant nodes of every document and element in the source collection. An of 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 . 2 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 every element in the source collection, and the descendant nodes of every element in the source collection. An of that contains the source collection. 2 Returns a collection of elements that contains the descendant elements of every element and document in the source collection. An of 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 . 2 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 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 . 2 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 every element in the source collection, and the descendent elements of every element in the source collection. An of that contains the source collection. 2 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 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. 2 Returns a collection of the child elements of every element and document in the source collection. An of of the child elements of every element or document in the source collection. An of that contains the source collection. The type of the objects in , constrained to . 2 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 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 . 2 Returns a collection of nodes that contains all nodes in the source collection, sorted in document order. An of 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 . 2 Returns a collection of the child nodes of every document and element in the source collection. An of 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 . 2 Removes every attribute in the source collection from its parent element. An of that contains the source collection. 2 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 . 2 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 serialization options. Format (indent) the XML while serializing. Preserve all insignificant white space while serializing. Represents an XML attribute. Initializes a new instance of the class from another object. An object to copy from. The parameter is null. 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 null. Gets an empty collection of attributes. An of containing an empty collection. Determines if this attribute is a namespace declaration. true if this attribute is a namespace declaration; otherwise false. 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. 2 Gets the node type for this node. The node type. For objects, this value is . Cast the value of this to a . A that contains the content of this . The to cast to . The attribute does not contain a valid value. The parameter is null. Cast the value of this to a of . A of that contains the content of this . The to cast to a of . The attribute does not contain a valid value. Cast the value of this to a of . A of that contains the content of this . The to cast to of . The attribute does not contain a valid value. Cast the value of this to a of . A of that contains the content of this . The to cast to of . The attribute does not contain a valid value. Cast the value of this to a . A that contains the content of this . The to cast to . The attribute does not contain a valid value. The parameter is null. Cast the value of this to a . A that contains the content of this . The to cast to . The attribute does not contain a valid value. The parameter is null. Cast the value of this to a . A that contains the content of this . The to cast to . The attribute does not contain a valid value. The parameter is null. Cast the value of this to a of . A of that contains the content of this . The to cast to a of . The attribute does not contain a valid value. Cast the value of this to a of . A of that contains the content of this . The to cast to a of . The attribute does not contain a valid value. Cast the value of this to a of . A of that contains the content of this . The to cast to a of . The attribute does not contain a valid value. Cast the value of this to a . A that contains the content of this . The to cast to . The attribute does not contain a valid value. The parameter is null. Cast the value of this to a . A that contains the content of this . The to cast to . The attribute does not contain a valid value. The parameter is null. Cast the value of this to an . A that contains the content of this . The to cast to . The attribute does not contain a valid value. The parameter is null. Cast the value of this to a of . A of that contains the content of this . The to cast to a of . Cast the value of this to a . A that contains the content of this . The to cast to . The attribute does not contain a valid value. The parameter is null. Cast the value of this to a . A that contains the content of this . The to cast to . Cast the value of this to a . A that contains the content of this . The to cast to . The attribute does not contain a valid value. The parameter is null. Cast the value of this to a of . A of that contains the content of this . The to cast to of . The attribute does not contain a valid value. Cast the value of this to a of . A of that contains the content of this . The to cast to a of . The attribute does not contain a valid value. Cast the value of this to a of . A of that contains the content of this . The to cast to a of . The attribute does not contain a valid value. Cast the value of this to a . A that contains the content of this . The to cast to . The attribute does not contain a valid value. The parameter is null. Cast the value of this to a of . A of that contains the content of this . The to cast to of . The attribute does not contain a valid value. Cast the value of this to an . A that contains the content of this . The to cast to . The attribute does not contain a valid value. The parameter is null. Cast the value of this to a of . A of that contains the content of this . The to cast to a of . The attribute does not contain a valid value. Cast the value of this to a . A that contains the content of this . The to cast to . The attribute does not contain a valid value. The parameter is null. Gets the previous attribute of the parent element. An containing the previous attribute of the parent element. 2 Removes this attribute from its parent element. The parent element is null. Sets the value of this attribute. The value to assign to this attribute. The parameter is null. 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 null. 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. 2 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 null. Initializes a new instance of the class from an existing comment node. The node to copy from. The parameter is null. 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 null. Write this comment to an . An into which this method will write. 2 Represents a node that can contain other nodes. 2 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 null. Creates an that can be used to add nodes to the . An that is ready to have content written to it. 2 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. An of containing the descendant elements of the that match the specified . The to match. Gets the first (in document order) child element with the specified . A that matches the specified , or null. The to match. 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. An of containing the children of the that have a matching , in document order. The to match. Get the first child node of this node. An containing the first child node of the . 2 Get the last child node of this node. An containing the last child node of the . 2 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. 2 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. 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 from a . An that contains the contents of the specified . A that contains the content for the . Creates a new from a , optionally preserving white space, setting the base URI, and retaining line information. An that contains the XML that was read from the specified . A that contains the content for the . A that specifies white space behavior, and whether to load base URI and line information. Creates a new from a file. An that contains the contents of the specified file. A URI string that references the file to load into a new . Creates a new from a file, optionally preserving white space, setting the base URI, and retaining line information. An that contains the contents of the specified file. 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. Creates a new from an . An that contains the contents of the specified . A that contains the content for the . Loads an from an , optionally setting the base URI, and retaining line information. An that contains the XML that was read from the specified . A that will be read for the content of the . A that specifies whether to load base URI and line information. Gets the node type for this node. The node type. For objects, this value is . Creates a new from a string. An populated from the string that contains XML. A string that contains XML. Creates a new from a string, optionally preserving white space, setting the base URI, and retaining line information. An populated from the string that contains XML. A string that contains XML. A that specifies white space behavior, and whether to load base URI and line information. Gets the root element of the XML Tree for this document. The root of the XML tree. 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. 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. 2 Represents an XML Document Type Definition (DTD). 2 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. 2 Represents an XML element. 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. An of that contain this element, and the ancestors of this element. Only elements that have a matching are included in the collection. The to match. Returns the of this that has the specified . An that has the specified ; null if there is no attribute with the specified name. The of the to get. 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. An of that contains the attributes of this element. Only elements that have a matching are included in the collection. The to match. 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. 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. The to match. 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. 2 Gets the default of this . An that contains the default namespace of this . 2 Gets the namespace associated with a particular prefix for this . An for the namespace associated with the prefix for this . A string that contains the namespace prefix to look up. 2 Gets the prefix associated with a namespace for this . A that contains the namespace prefix. An to look up. 2 Gets a value indicating whether this element as at least one attribute. true if this element has at least one attribute; otherwise false. Gets a value indicating whether this element has at least one child element. true if this element has at least one child element; otherwise false. Gets a value indicating whether this element contains no content. true if this element contains no content; otherwise false. Gets the last attribute of this element. An that contains the last attribute of this element. 2 Loads an from a . An that contains the XML that was read from the specified . A that will be read for the content. Loads an from a , optionally preserving white space and retaining line information. An that contains the XML that was read from the specified . A that will be read for the content. A that specifies white space behavior, and whether to load base URI and line information. Loads an from a file. An that contains the contents of the specified file. A URI string referencing the file to load into a new . Loads an from a file, optionally preserving white space, setting the base URI, and retaining line information. An that contains the contents of the specified file. 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. Loads an from an . An that contains the XML that was read from the specified . A that will be read for the content of the . Loads an from an , optionally preserving white space, setting the base URI, and retaining line information. An that contains the XML that was read from the specified . 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. Gets 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 . A that contains the content of this . The to cast to . The element does not contain a valid value. The parameter is null. Cast the value of this to a . A that contains the content of this . The to cast to . The element does not contain a valid value. The parameter is null. Cast the value of this to a of . A of that contains the content of this . The to cast to of . The element does not contain a valid value. Cast the value of this to a of . A of that contains the content of this . The to cast to of . The element does not contain a valid value. Cast the value of this to a . A that contains the content of this . The to cast to . The element does not contain a valid value. The parameter is null. Cast the value of this to a of . A of that contains the content of this . The to cast to of . The element does not contain a valid value. Cast the value of this to a of . A of that contains the content of this . The to cast to of . The element does not contain a valid value. Cast the value of this to a of . A of that contains the content of this . The to cast to of . The element does not contain a valid value. Cast the value of this to a . A that contains the content of this . The to cast to . The element does not contain a valid value. The parameter is null. Cast the value of this to a of . A of that contains the content of this . The to cast to of . The element does not contain a valid value. Cast the value of this to a . A that contains the content of this . The to cast to . The element does not contain a valid value. The parameter is null. Cast the value of this to a of . A of that contains the content of this . The to cast to an of . The element does not contain a valid value. Cast the value of this to a . A that contains the content of this . The to cast to . The element does not contain a valid value. The parameter is null. Cast the value of this to a . A that contains the content of this . The to cast to . The element does not contain a valid value. The parameter is null. Cast the value of this to an . A that contains the content of this . The to cast to . The element does not contain a valid value. The parameter is null. Cast the value of this to a of . A of that contains the content of this . The to cast to of . The element does not contain a valid value. Cast the value of this to a of . A of that contains the content of this . The to cast to of . The element does not contain a valid value. Cast the value of this to a . A that contains the content of this . The to cast to . Cast the value of this to a . A that contains the content of this . The to cast to . The element does not contain a valid value. The parameter is null. Cast the value of this to a . A that contains the content of this . The to cast to . The element does not contain a valid value. The parameter is null. Cast the value of this to a . A that contains the content of this . The to cast to . The element does not contain a valid value. The parameter is null. Cast the value of this to a of . A of that contains the content of this . The to cast to of . The element does not contain a valid value. Cast the value of this to a of . A of that contains the content of this . The to cast to of . The element does not contain a valid value. Cast the value of this to a of . A of that contains the content of this . The to cast to of . The element does not contain a valid value. Cast the value of this to an . A that contains the content of this . The to cast to . The element does not contain a valid value. The parameter is null. Load an from a string that contains XML. An populated from the string that contains XML. A that contains XML. Load an from a string that contains XML, optionally preserving white space and retaining line information. An populated from the string that contains XML. A that contains XML. A that specifies white space behavior, and whether to load base URI and line information. 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. 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 null. 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 null. 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 null. 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 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. 2 Represents a name of an XML element or attribute. Determines whether the specified is equal to this . true if the specified is equal to the current ; otherwise false. The to compare to the current . Gets an object from an expanded name. An object constructed from the expanded name. A that contains an expanded XML name in the format {namespace}localname. Gets an object from a local name and a namespace. An object created from the specified local name and namespace. A local (unqualified) name. An XML 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. true if and are equal; otherwise false. The first to compare. The second to compare. Converts a string formatted as an expanded XML name (that is,{namespace}localname) to an object. An object constructed from the expanded name. A string that contains an expanded XML name in the format {namespace}localname. Returns a value indicating whether two instances of are not equal. true if and are not equal; otherwise false. The first to compare. The second to compare. Indicates whether the current is equal to the specified . true if this is equal to the specified , otherwise false. The to compare with this . 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 . A that indicates whether the specified is equal to the current . The to compare to the current . Gets an for the specified Uniform Resource Identifier (URI). An created from the specified URI. A that contains a namespace 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. An created from this and the specified local name. A that contains a 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 . The new constructed from the namespace and local name. An that contains the namespace. A that contains the local name. Returns a value indicating whether two instances of are equal. A that indicates whether and are equal. The first to compare. The second to compare. Converts a string containing a Uniform Resource Identifier (URI) to an . An constructed from the URI string. A that contains the namespace URI. Returns a value indicating whether two instances of are not equal. A that indicates whether and are not equal. The first to compare. The second to compare. 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. 2 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 null. Adds the specified content immediately after this node. A parameter list of content objects. The parent is null. 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 null. Adds the specified content immediately before this node. A parameter list of content objects. The parent is null. 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. 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. The to match. Compares two nodes to determine their relative XML document order. An int containing 0 if the nodes are equal; -1 if is before ; 1 if is after . First to compare. Second to compare. 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. 2 Compares the values of two nodes, including the values of all descendant nodes. true if the nodes are equal; otherwise false. The first to compare. The second to compare. Gets a comparer that can compare the relative position of two nodes. A 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. An of of the sibling elements after this node, in document order. Only elements that have a matching are included in the collection. The to match. 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. An of of the sibling elements before this node, in document order. Only elements that have a matching are included in the collection. The to match. 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. true if this node appears after the specified node; otherwise false. The to compare for document order. Determines if the current node appears before a specified node in terms of document order. true if this node appears before the specified node; otherwise false. The to compare for document order. Gets the next sibling node of this node. The that contains the next sibling node. 2 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. 2 Creates an from an . 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. An positioned at the node to read into this . The is not positioned on a recognized node type. The underlying throws an exception. 2 Removes this node from its parent. The parent is null. 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 containing the XML. A that specifies formatting behavior. Writes this node to an . An into which this method will write. 2 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. An that contains 0 if the nodes are equal; -1 if is before ; 1 if is after . The first to compare. The second to compare. The two nodes do not share a common ancestor. Compares two nodes to determine their relative document order. An that contains 0 if the nodes are equal; -1 if is before ; 1 if is after . The first to compare. The second to compare. 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. A indicating if the nodes are equal. The first to compare. The second to compare. Returns a hash code based on an . A that contains a value-based hash code for the node. The to hash. Compares the values of two nodes. true if the nodes are equal; otherwise false. The first to compare. The second to compare. Returns a hash code based on the value of a node. A that contains a value-based hash code for the node. The node to hash. Represents a node or an attribute in an XML tree. 2 Adds an object to the annotation list of this . An that contains the annotation to add. Get the first annotation object of the specified type from this . The first annotation object that matches the specified type, or null if no annotation is of the specified type. The type of the annotation to retrieve. Gets the first annotation object of the specified type from this . The that contains the first annotation object that matches the specified type, or null if no annotation is of the specified type. The of the annotation to retrieve. Gets a collection of annotations of the specified type for this . An that contains the annotations for this . The type of the annotations to retrieve. Gets a collection of annotations of the specified type for this . An of that contains the annotations that match the specified type for this . The of the annotations to retrieve. Gets the base URI for this . A that contains the base URI for this . 2 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 of annotations to remove. Gets a value indicating whether or not this has line information. true if the has line information, otherwise false. 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 . 2 An has been or will be added to an . An has been or will be removed from an . An has been or will be renamed. 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. 2 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 null. 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 null. 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 null. The does not follow the constraints of an XML name. Writes this processing instruction to an . The to write this processing instruction to. 2 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. 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 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 containing the XML. A that specifies formatting behavior. Writes this streaming element to an . An into which this method will write. 2 Represents a text node. 2 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. 2 This class contains the LINQ to XML extension methods for XSD validation. 2 Gets the post-schema-validation infoset (PSVI) of a validated attribute. A that contains the post-schema-validation infoset for an . An that has been previously validated. 2 Gets the post-schema-validation infoset (PSVI) of a validated element. A that contains the post-schema-validation infoset (PSVI) for an . An that has been previously validated. 2 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 null, throws an exception upon validation errors. Thrown for XML Schema Definition Language (XSD) validation errors. 2 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 null, 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. 2 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 null, throws an exception upon validation errors. Thrown for XML Schema Definition Language (XSD) validation errors. 2 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 null, 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. 2 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 null, throws an exception upon validation errors. Thrown for XML Schema Definition Language (XSD) validation errors. 2 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 null, 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. 2 This class contains the LINQ to XML extension methods that enable you to evaluate XPath expressions. 2 Creates an for an . An that can process XPath queries. An that can process XPath queries. 2 Creates an for an . The enables more efficient XPath expression processing. An that can process XPath queries. An that can process an XPath query. A to be used by . 2 Evaluates an XPath expression. An object that can contain a bool, a double, a string, or an . The on which to evaluate the XPath expression. A that contains an XPath expression. 2 Evaluates an XPath expression, resolving namespace prefixes using the specified . An object that contains the result of evaluating the expression. The object can be a bool, a double, a string, or an . The on which to evaluate the XPath expression. A that contains an XPath expression. A for the namespace prefixes in the XPath expression. 2 Selects an using a XPath expression. An , or null. The on which to evaluate the XPath expression. A that contains an XPath expression. 2 Selects an using a XPath expression, resolving namespace prefixes using the specified . An , or null. The on which to evaluate the XPath expression. A that contains an XPath expression. An for the namespace prefixes in the XPath expression. 2 Selects a collection of elements using an XPath expression. An of that contains the selected elements. The on which to evaluate the XPath expression. A that contains an XPath expression. 2 Selects a collection of elements using an XPath expression, resolving namespace prefixes using the specified . An of that contains the selected elements. The on which to evaluate the XPath expression. A that contains an XPath expression. A for the namespace prefixes in the XPath expression. 2