Use IndentingXMLEventWriter.

Thanks for @reckart for the suggestion! Fixes #5.