Use StAXStreamWriter (outputs newline character entity).