xmlClone: Create a copy of an internal XML document or node
Description
These methods allow the caller to create a copy of
an XML internal node. This is useful, for example, if we want to use
the node or document in an additional context, e.g.
put the node into another document while leaving it in the
existing document. Similarly, if we want to remove nodes to simplify
processing, we probably want to copy it so that the changes are not
reflected in the original document. At present, the newly created object is not garbage collected.
Usage
xmlClone(node, recursive = TRUE, addFinalizer = FALSE, ...)
Value
- A new R object representing the object.