xml.StaxWriter.setDefaultNamespace

Binds a namespace URI to the default namespace.

Syntax

setDefaultNamespace(
   ns STRING )
  1. ns defines the URI to bind to the default namespace, cannot be NULL.

Usage

This method binds a namespace URI to the default namespace. The default namespace scope is the current START_ELEMENT / END_ELEMENT pair; ns is the URI to bind to the default namespace. It cannot be NULL.

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