xml.DomDocument.appendDocumentNode

Adds a child DomNode object to the end of the DomNode children for this DomDocument object.

Syntax

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

Usage

Adds a child DomNode object to the end of the DomNode children for this DomDocument object, where node is the node to add. Status is updated with an error code.

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 with the appropriate error number.