xml.DomNode.addPreviousSibling

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

Syntax

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

Usage

Adds a DomNode object as the previous sibling of 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.