title: StAX XML formatting in Java
body: <p>Is it possible using StAX (specifically woodstox) to format the output xml with newlines and tabs, i.e. in the form:</p>
  
  <pre>
  &lt;element1>
    &lt;element2>
     someData
    &lt;/element2>
  &lt;/element1>
  </pre>
  
  <p>instead of:</p>
  
  <pre>&lt;element1>&lt;element2>someData&lt;/element2>&lt;/element1></pre>
  
  <p>If this is not possible in woodstox, is there any other lightweight libs that can do this?</p>