title: Writing a large XML file with Out Of Memory Error Java
body: <p>I am developing an app for android, I need to create a rather large XML file.</p>
  
  <p>I have tried this with a DOM document however because it resides in memory it throws an 'out of memory' error.</p>
  
  <p>Can someone suggest an alternative solution? This is a XML file create from scratch.</p>