xml.DomNode.insertBeforeChild

Inserts a DomNode object before an existing child DomNode object.

Syntax

insertBeforeChild(
   node xml.DomNode,
   ref xml.DomNode )
  1. node is the node to insert.
  2. ref is the reference node (the node before which the new node must be inserted).

Usage

Inserts a DomNode object before an existing child DomNode object; node is the node to insert, ref is the reference node (the node before which the new node must be inserted).

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).