views:

13

answers:

0

Hi all, When I output an XML file using Xstream with a custom converter, all the nodes are printed out nice and indented etc., however when I print out another object, there is no new line between the end object tag and the new object tag. Take the example below:

    </macroblock>
  </frame>
</MetadataFrame><MetadataFrame frame="456">
  <macroblock>

I know it's purely an aesthietic nit-picky thing but I would prefer the output to be:

    </macroblock>
  </frame>
</MetadataFrame>
<MetadataFrame frame="456">
  <macroblock>

Have I missed something in the documentation? Is there an easy way to do this?

Cheers Chris