xml.StaxWriter.setFeature

Sets a feature of a StaxWriter object.

Syntax

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

Usage

Sets a feature of a StaxWriter object, where feature 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 with the appropriate error number.