DomNode->replace_node()
DomNode->replace_node - Replaces nodeSyntax
domelement DomNode->replace_node (domelement $newnode)Arguments
- newnode - The node being appended. It can be created with e.g. DomDocument->create_element, DomDocument->create_text_nodeetc. or simply by using any other node. Note: You can not append a DOMAttributeusing this method. Use DomElement->set_attributeinstead.
