Just use:
Node result = node.cloneNode(false);
As a document:
Node cloneNode(boolean deep) deep - If true, recursively clone the subtree under the specified node; if false, clone only the node itself (and its attributes, if it is an Element).
source share