Removes this node from its parent if there is one. If this node is the root element of a document then it is removed from the document as well.
This method is useful if you want to remove a node from its source document and add it to another document. For example
Node node = ...; Element someOtherElement = ...; someOtherElement.add( node.detach() );
@return the node that has been removed from its parent node if any andits document if any.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|