DomNode->replace_node
Replaces node
Description
objectDomNode->replace_node
objectnewnode
This function replaces an existing node with the passed
new node. Before the replacement
newnode is copied to make sure a node which is
already in the document will not be inserted a second time. This
behaviour enforces to do all modifications on the node before the
replacement or to refetch the inserted node afterwards with functions like
DomNode_first_child,
DomNode_child_nodes etc..
See also DomNode_append_child