setChild

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

Move a child into the tree.

The child must be root of a modifiable tree. If this is not the case, copy it instead.

The child is moved at the end of the XML tree.

Return

The moved child.

Parameters

child

The child to move.

Throws

The tree is read-only or the child is not root of a modifiable tree.