xml.StaxWriter.setFeature

Sets a feature of a StaxWriter object.

Syntax

setFeature(
   property STRING,
   value STRING )
  1. property defines the name of a feature.
  2. value is the value of the feature.

Usage

Use this method to set a feature of a StaxWriter object, where property is the name of a feature, and value is the value of the feature. The features can be changed at any time, but will only be taken into account at the beginning of a new stream (see writeTo or writeToDocument).

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