The program flow of an XML write follows this general pattern in a forward-only stream:
To build an element, use the
START-ELEMENT method to create the start tag for the desired element type. If you have created a SAX-attributes either to programatically build a list of attributes for the element or to capture a set of attributes during a SAX read operation, you can pass it as an optional parameter to the
START-ELEMENT method. (The
WRITE-EMPTY-ELEMENT and
WRITE-DATA-ELEMENT methods also can take a SAX-attributes object as an optional parameter.)