Method Parser.XML.Tree.AbstractSimpleNode()->replace_child()
- Method
replace_child
AbstractSimpleNode|zeroreplace_child(AbstractSimpleNodeold,AbstractSimpleNode|array(AbstractSimpleNode)new)- Description
Replaces the first occurrence of the old node child with the new node child or children.
- Note
The return value differs from the one returned by Node()->replace_child().
- Returns
Returns the current node on success, and
0(zero) if the nodeoldwasn't found.