It seems that when I generate numerous xml files my application uses more and more memory. I ended up taking DOMCreate.pl from the xerces samples and I wrapped it in a loop and it grows from around 8MB after the first call to about 24MB after the 1000-th call. Is there something i should be calling to release the memory?