Pike programming language

Top Parser Parser.XML Parser.XML.Tree Parser.XML.Tree.AbstractSimpleNode
➤ Parser.XML.Tree.AbstractSimpleNode()->remove_child() Parser.XML.Tree.AbstractSimpleNode()->replace_children() ➤

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 node old wasn't found.

Extracted from as of .