xml.DomDocument.removeDocumentNode

Removes a child DomNode object from the DomNode children for this DomDocument object.

Syntax

removeDocumentNode(
   node xml.DomNode )
  1. node is the node to remove.

Usage

Removes a child DomNode object from the DomNode children for this DomDocument object, where node is the node to remove.

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

In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.