xml.DomNode.setNodeValue

Sets the node value for a DomNode object.

Syntax

setNodeValue(
   value STRING )
  1. value defines the node value.

Usage

This method sets the node value for this DomNode object, where value is the node value.

Use of this method is only recommended for nodes that are not parents of other nodes, which means it can be used for a node of type:
  • ATTRIBUTE_NODE
  • TEXT_NODE
  • CDATA_SECTION_NODE
  • PROCESSING_INSTRUCTION_NODE
  • COMMENT_NODE

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