XmlDocument.adoptNode

XmlNode adoptNode(XmlNode node) @safe

Adopts node into this document by detaching it from its current parent.

Note

The caller is responsible for inserting the adopted node into this document.

Parameters

nodeNode to adopt.

Returns

The same node, now detached.

Throws

XmlException if node is null or a document node.