1. A computer-implemented method comprising the steps of: determining a default memory size for an XML event-generating process; requesting, from a memory manager, allocation of a memory chunk of the default memory size for use with the XML event-generating process; processing the XML data source using the XML event-generating process, thereby generating one or more XML events; wherein processing the XML data source requires the use of a plurality of memory buffers; wherein the XML event-generating process stores the plurality of memory buffers in the memory chunk; and requesting that the memory manager deallocate the memory chunk.