0

JAXB is generating xml like below and this is not root element.

<Activitys xsi:type="Activity" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
--------
-----
</Activitys>

How can we display like below?

<Activitys>
    <Activity>
      ----
     </Activity>
</Activitys>

XStream lib is generating like above and need to same with JAXB.

Sreedhar
  • 1
  • 1
  • Please see the http://stackoverflow.com/questions/17222902/remove-namespace-prefix-while-jaxb-marshalling – Sudhakar Jun 09 '16 at 17:32
  • Thanks for the pointer, now I got rid of xmlns. Now how to print xsi:type in next line. From -------- ----- to ---- – Sreedhar Jun 09 '16 at 18:11

0 Answers0