Is it possible using StAX (specifically woodstox) to format the output xml with newlines and tabs, i.e. in the form:
someData &
If you're using the iterating method (XMLEventReader), can't you just attach a new line '\n' character to the relevant XMLEvents when writing to your XML file?