xml.StaxWriter.startElementNS

Writes a namespace-qualified XML start element to the StaxWriter stream.

Syntax

startElementNS(
   name STRING,
   ns STRING )
  1. name is the local name of the XML start element, cannot be NULL.
  2. ns is the namespace URI of the XML start element, cannot be NULL.

Usage

All startElementNS methods open a new scope and set the stream to a START_ELEMENT. Writing the corresponding endElement causes the scope to be closed.

If namespace URI has not been bound to a prefix with one of the functions setPrefix, declareNamespace, setDefaultNamespace or declareDefaultNamespace, the operation fails with an exception.

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