The kind of XML node this object represents.
The parent of this object in the XML tree, or null if it is a root.
Gets the first child node, or null if the container is empty.
Gets the last child node, or null if the container is empty.
Gets the next sibling node, or null if this is the last node.
Gets the previous sibling node, or null if this is the first node.
Appends content as children of this container.
Nodes, strings, or arrays to add.
Content rules:
Inserts the specified content immediately after this node in its parent.
One or more nodes or strings to insert.
Inserts content as the first children of this container.
Nodes, strings, or arrays to prepend.
Performs a deep structural comparison of this node with another.
The node to compare against.
true if the two nodes are structurally identical.
Compares this container's child nodes with another container's for structural equality.
The container to compare against.
true if both containers have the same child nodes in order.
Inserts content immediately after an existing child node.
The reference child node.
Content to insert after the child.
Inserts content immediately before an existing child node.
The reference child node.
Content to insert before the child.
Removes annotations from this object.
Removes a specific child node from this container.
The child node to remove.
Removes all child nodes from this container.
Replaces an existing child node with the specified content.
The child node to replace.
Content that replaces the child.
Replaces all child nodes with the specified content.
New content to use as children.
StaticdeepStatic convenience method for deep structural comparison of two nodes.
true if the two nodes are structurally identical.
Abstract base class for XML nodes that can contain child nodes.
Remarks
XElement and XDocument extend
XContainer. It provides the child-node collection, element and descendant queries, and content manipulation methods (add, remove, replace).