copyChild

open fun copyChild(@NonNull child: Xml): Xml

Deep copy a child into the tree.

The child is copied to the end of the XML tree.

If the child is root of a modifiable tree and you do not need this tree anymore, prefer moving it into the tree.

Return

The copied child node.

Parameters

child

The child to copy.

Throws