xml.DomNode.replaceChild

Replaces an existing child DomNode with another child DomNode object.

Syntax

replaceChild(
   newChild xml.DomNode,
   oldChild xml.DomNode )
  1. newChild defines the replacement child.
  2. oldChild defines the child to be replaced.

Usage

Use this method to replace an existing child DomNode with another child DomNode object, where oldChild is the child to be replaced and newChild 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).