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.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo