title: How to marshal without a namespace?
body: <p>I have a fairly large repetitive XML to create using JAXB. Storing the whole object in the memory then do the marshaling takes too much memory. Essentially, my XML looks like this:</p>
  
  <pre><code>&lt;Store&gt;
    &lt;item /&gt;
    &lt;item /&gt;
    &lt;item /&gt;
  .....
  &lt;/Store&gt;
  </code></pre>
  
  <p>Currently my solution to the problem is to "hard code" the root tag to an output stream, and marshal each of the repetitive element one by one:</p>
  
  <pre><code>aOutputStream.write("&lt;?xml version="1.0"?&gt;")
  aOutputStream.write("&lt;Store&gt;")
  
  foreach items as item
    aMarshaller.marshall(item, aOutputStream)
  end
  aOutputStream.write("&lt;/Store&gt;")
  aOutputStream.close()
  </code></pre>
  
  <p>Somehow the JAXB generate the XML like this</p>
  
  <pre><code> &lt;Store  xmlns="http://stackoverflow.com"&gt;
    &lt;item xmlns="http://stackoverflow.com"/&gt;
    &lt;item xmlns="http://stackoverflow.com"/&gt;
    &lt;item xmlns="http://stackoverflow.com"/&gt;
  .....
  &lt;/Store&gt;
  </code></pre>
  
  <p>Although this is a valid XML, but it just looks ugly, so I'm wondering is there any way to tell the marshaller not to put namespace for the item elements? Or is there better way to use JAXB to serialize to XML chunk by chunk?</p>