jaxb - How to get formatted output when marshalling to XMLEventWriter? -
i trying marshal jaxb annotated object stax xmleventwriter, when set marshaller property jaxb_formatted_output true in result marshalled object not formatted.
thanks
ps: using oracle java 8 ri , woodstock stax
ok have found solution. if have used xmlstreamwriter, there built in wrapper called indentingxmlstreamwriter, not find same eventwriter.
than found answer reference stax utils. have added maven manifest
<dependency> <groupid>net.java.dev.stax-utils</groupid> <artifactid>stax-utils</artifactid> </dependency>
and able use indentingxmleventwriter.