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 element if it has no children.

Default value is FALSE.