StaxWriter Features

Features of the xml.StaxWriter class.

Table 1. StaxWriter features
Feature Description
format-pretty-print

Formats the output by adding whitespace to produce a pretty-printed, indented, human-readable form.

Default value is FALSE.

smart-ending-elements

Outputs each tag closed with an endElement() call as empty elements if they have no children.

Default value is FALSE.