Method Parser.XML.Tree.AbstractSimpleNode()->replace_child()
- Method
replace_child
AbstractSimpleNode
|zero
replace_child(AbstractSimpleNode
old
,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 nodeold
wasn't found.