xml.DomNode.setNodeValue

Sets the node value for a DomNode object.

Syntax

setNodeValue(
   val STRING )
  1. val is the node value.

Usage

Sets the node value for this DomNode object, where val is the node value.

This method should only be used for nodes that are not parent of other nodes, which means it can be sued 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).