Pike v8.0 release 1738

Method Parser.XML.Tree.AbstractNode()->clone()


Method clone

AbstractNode clone(void|int(-1..1) direction)

Description

Clones the node, optionally connected to parts of the tree. If direction is -1 the cloned nodes parent will be set, if direction is 1 the clone nodes childen will be set.