Indentation of the change log output from <generateChangeLog> Ant target

I’m generating change log using Ant target using the code shown below:


   


It generates the XML file without problem. However, the output has no indentation at all, and every line starts at the character position zero. The result is same when I use command line interface or invoke the Java Main method directly.


Any tips on how to cause this to indent properly without having to post-process this output file?


Thanks in advance.

The indenting is done by the XML library java is picking up. I’ve generally tested with Xerces and it indents correctly, IIRC. What library are you using and/or is it picking up an unexpected XML library version?

Nathan

You’re right. I had xalan in my classpath which was picked up, and somehow it didn’t handle indentation correctly. Removing this from the classpath fixes the problem.


Thanks

/Jong