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. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).