(no version information, might be only in CVS)
DomNode_>replace_node __
Replaces node
Description
object
DomNode_>replace_node ( object newnode)
(PHP 4_2) This function replaces an existing node with the passed
new node_ Before the replacement
newnode is copied if it has a parent to
make sure a node which is
already in the document will not be inserted a second time_ This
behaviour enforces doing 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__
(PHP 4_3) This function replaces an existing node with the passed new node_ It is not
copied anymore_ If newnode was already inserted in the document
it is first unlinked from its existing context_ If the replacement succeds the old
node is returned_
See also domnode_append_child()