replaceChild

Description

Replace a child of this node.

If you want to replace a node with another node, use XopusNode.replaceChild(newChild, refChild.getNextSibling()).

Syntax

XopusNode .replaceChild (newchild : XopusNode, oldChild : XopusNode) : XopusNode

Arguments

newchild
XopusNode . The node to insert.
oldchild
XopusNode . The child to replace.

Return Value

XopusNode . The listener function or object.