title: Java: IndentingXMLStreamWriter alternative?
body: <p>I am using StAX to create a quite large xml document. Until now I was using the IndentingXMLStreamwriter class to get a well formatted document (see also <a href="https://stackoverflow.com/questions/290326/stax-xml-formatting-in-java/3625359#3625359">this answer</a>). A few days ago we setup a jenkins server with an older jdk version (6.26), on which i get build errors.   </p>
  
  <pre><code>package com.sun.xml.internal.txw2.output does not exist
  </code></pre>
  
  <p>I assume the package cannot be found because of the installed jdk version. For different reasons this cannot be changed
  (by the way, does anyone know the jdk version, at which this package (com.sun.xml.internal.txw2.output) was added?).<br>
  Therefore I am looking for an alternative to do the indenting. I would prefer a solution similar to the one I was using, which means without reparsing the document. Any ideas or suggestions?</p>
  
  <p>Thanks<br>
  Lars</p>