xml.DomNode.prependChild

Adds a child DomNode object to the beginning of the child list for a DomNode object.

Syntax

prependChild(
   newChild xml.DomNode )
  1. newChild defines the node to add.

Usage

Use this method to add a child DomNode object to the beginning of the child list for this DomNode object; newChild 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).