clone

open fun clone(): Xml

Deep-copy the XML tree.

The copy becomes a writable root even if the original is not.

Return

The new copy.