The StaxWriter class

The xml.StaxWriter class provides methods compatible with Streaming API for XML(StAX) for writing XML documents.

This class is provided in the xml C-Extension library; To use this class, import the xml package with:
IMPORT xml

The status variable is set to zero after a successful method call.