The StAX standards allow you to specify properties in XMLInputFactory and XMLOutputFactory. You can specify the following properties:
For meanings of the respective properties, see the following subsections in Streaming API For XML Version 1.0 (JSR-173):
To specify properties for XMLInputFactory, use the setProperty method of the javax.xml.stream.XMLInputFactory class, and to specify properties for XMLOutputFactory, use the setProperty method of the javax.xml.stream.XMLOutputFactory class.
The following points describe how to specify the respective properties: