[jdom-interest] Debugging Output

Ken Rune Helland kenh at csc.no
Thu Jun 14 02:45:30 PDT 2001


At 08:46 AM 6/14/2001 +0100, Kenworthy, Edward wrote:
>What would be really useful for debugging would be if JDom could be
>persuaded to output its XML in a more user-friendly manner. The current
>format is basically unreadable for a human, sure it's correct but that
>doesnt help with debugging.


By default XMLOutputter preserves whitespace as the XMLspec
says whitepace is (can be) sigificant.

This means if an element has children but no Text nodes betwheen them
with newlines the elements will be output on a single line.

But there is options on the XMLOutoputter to change this
so see the javadoc for the XMLOutputter


KenR




More information about the jdom-interest mailing list