Abstract Protected constructorGets the XDocument object for this XObject.
Gets this container's first XNode or null, if this container does not
have any nodes.
Gets this container's last XNode or null, if this container does not
have any nodes.
Gets the next sibling node of this node.
If this node does not have a parent, or if there is no next node, then this property returns null.
Gets the parent XElement of this XObject.
Gets the previous sibling node of this node.
If this property does not have a parent, or if there is no previous node, then this property returns null.
Adds the specified content as a child (or children) of this XContainer.
A content object containing simple content or a collection of content objects to be added.
Returns the collection of the ancestor elements for this node.
The ancestor elements of this node.
Optional name: null | XNameThe optional name of the ancestor elements to find.
Gets the descendant XElements of this XContainer.
The descendant XElements of this XContainer.
Optional name: null | XNameThe optional name of the descendants to return.
Gets the child XElements of this XContainer.
The child XElements of this XContainer.
Optional name: null | XNameThe optional name of the elements to return.
Returns the content of this XContainer.
Note that the content does not include XAttributes.
The content of this XContainer as an IterableOfXNode.
Removes this XNode from the underlying XML tree.
Removes the nodes from this XContainer.
Note that this method does not remove the attributes.
Private removeReplaces the child nodes of this XContainer with the specified content.
The content can be simple content, a collection of content objects, a param
list of content objects, or null.
Rest ...content: any[]The new content.
Replaces this node with the specified content.
Rest ...content: any[]Content that replaces this node.
Abstract toReturns a string that represents the current object.
A string that represents the current object.
Generated using TypeDoc
Represents a node that can contain other nodes. The two classes that derive from XContainer are XDocument and XElement.