Woodstox : Configuring Woodstox For Low Memory Usage


In certain cases, Woodstox may need to process large XML documents in low memory environment. In such a scenario, Woodstox can be configured to work optimally under low memory condition.

In this article, we shall see how to configure woodstox for low memory usage.

Create employee.xml as shown below.

Create TestConfigurationForLowMemory class as shown below.

The configuration for low memory usage is defined using
(see line 19 below). This shall optimize Woodstox parser so that memory usage is optimized.

The output of the program is shown below:

Download Source Code for this Program

Leave a Comment