In certain cases, Aalto may need to process large XML documents in low memory environment. In such a scenario, Aalto can be configured to work optimally under low memory condition.
In this article, we shall see how to configure Aalto for low memory usage.
Create employee.xml as shown below.
Create TestConfigureLowMemory as shown below.
The configuration for low memory usage is defined using
(see line 17 below). This shall optimize Aalto parser so that memory usage is optimized.
The output of the program is shown below.