xml.DomDocument.prependDocumentNode

Adds a child DomNode object to the beginning of the DomNode children for a DomDocument object

Syntax

prependDocumentNode(
   node xml.DomNode )
  1. node is the node to add.

Usage

Adds a child DomNode object to the beginning of the DomNode children for this DomDocument object; node is the node to add.

CAUTION:
Not part of W3C API.

Only Text nodes, Processing Instruction nodes, Document Fragment nodes, one Element node and one Document Type node allowed.

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