xml.DomNode.prependChild

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

Syntax

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

Usage

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

CAUTION:
Not part of W3C 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 with the appropriate error number.