xml.StaxWriter.setPrefix

Binds a namespace URI to a prefix.

Syntax

setPrefix(
   prefix STRING,
   ns STRING )
  1. prefix is the prefix to be bind to the URI, cannot be NULL.
  2. ns is the namespace URI to be bind to the prefix, cannot be NULL.

Usage

The prefix scope is the current START_ELEMENT / END_ELEMENT pair.

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