The file itself is not so large, it should fit into memory. But as soon as you combine this with other overhead factors, then it starts to become a problem. We create a DOM in memory, and it does not scale for us. Using raw output streams seems problematic in the sense that we have to be careful with escape characters.
What are good approaches for this?
Are there any lib products for this?
java dom xml stream scalability
Artilheiro
source share