The StaxWriter class / xml.StaxWriter methods |
Writes an XML namespace qualified attribute to the StaxWriter stream.
attributeNS( name STRING, ns STRING, value STRING )
Attributes can only be written on the StaxWriter stream if it points to a START_ELEMENT or an EMPTY_ELEMENT, otherwise the operation fails with an exception; that is, this method can only be called after a startElement, startElementNS, emptyElement, emptyElementNS, or attribute and attributeNS.
If namespace URI has not been bound to a prefix with one of the methods 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 with the appropriate error number.