posted 13 years ago
I want to generate output xml look like the below one using jaxb.
<Item><CODE>605358</CODE><CDATE>03/26/2010</CDATE><IAMT>50.6</IAMT><IDISC>0</IDISC></ITEM>
but it generates jabx like this, the other application is not able streaming this completely rather it does partially.
<Item>
<CODE>605358</CODE>
<CDATE>03/26/2010</CDATE>
<IAMT>50.6</IAMT>
<IDISC>0</IDISC>
</ITEM>
I have tried setting jaxb property but no results.
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,Boolean.TRUE);
marshaller.setProperty(Marshaller.JAXB_FRAGMENT, false);
Please throw some light on this.