Hitachi

uCosminexus Application Server XML Processor User Guide


4.2 How to use StAX properties

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):

How to use StAX properties

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:

  • To specify properties for XMLInputFactory

    [Figure]

  • To specify properties for XMLOutputFactory

    [Figure]