xml.DomNode.addPreviousSibling

Adds a DomNode object as the previous sibling of a DomNode object.

Syntax

addPreviousSibling(
   newNode xml.DomNode )
  1. newNode defines the node to add.

Usage

Adds a DomNode object as the previous sibling of this DomNode object; newNode is the node to add.

Important: This method is not part of W3C standard API.

The DomNode object node must be the child of an element or document node; otherwise the operation fails.

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