xml.DomNode.replaceChild

Replaces an existing child DomNode with another child DomNode object.

Syntax

replaceChild(
   new xml.DomNode,
   old xml.DomNode )
  1. new is the replacement child.
  2. old is the child to be replaced.

Usage

Replaces an existing child DomNode with another child DomNode object, where old is the child to be replaced and new is the replacement child.

In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.