Is it possible using StAX (specifically woodstox) to format the output xml with newlines and tabs, i.e. in the form:
someData &
Not sure about stax, but there was a recent discussion about pretty printing xml here
pretty print xml from java
this was my attempt at a solution
How to pretty print XML from Java?
using the org.dom4j.io.OutputFormat.createPrettyPrint() method