The way StAX API defines configuration is such that Readers and Writers are mostly configured by configuring factory instances that create them.
Configurable options in StAX are called properties. Properties fall into couple of categories:
All of these properties are set the same way; what differs is where the property names are defined, and whether these properties can be used with other implementations than Woodstox.
Readers are configured via XMLInputFactory instance: readers use configuration settings the factory that created them had when instantiating the reader (so that future changes to the factory settings do not affect instances created earlier).
See full list of Woodstox reader configuration options for details.
Readers are configured via XMLOutputFactory instance: writers use configuration settings the factory that created them had when instantiating the writer.
See full list of Woodstox writer configuration options for details.
Back to Documentation page.