Method Parser.XML.Tree.AbstractNode()->replace_child()
- Method
replace_child
AbstractNode|zeroreplace_child(AbstractNodeold,AbstractNode|array(AbstractNode)new)- Description
Replaces the first occurrence of the old node child with the new node child or children. All parent references are updated.
- Note
The returned value is NOT the current node.
- Returns
Returns the new child node.