Doesn't using setPreserveSpace(false) in OutputFormat takes care of this? Assaf Arkin wrote:
> > If you extract all these whitespaces from the original personal.xml, or > test run it with ProjectX (which does not add these whitespaces), you > will get the pretty printing you expect to. >