The file itself is not that big, should fit in memory. But once you combine that with other overhead factors then starts to become a problem. We are building a DOM in memory and that is not scaling for us. Using raw output streams seems problematic in the sense that we have to be careful about escaping characters.
What are some good approaches for doing this?
Are there any goods libs for this?
STAX provides a convenient API with which to write XML to output stream. Easy tutorial here.
Try XStream
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With