[jdom-interest] Debugging Output
edward.kenworthy at exchange.co.uk
Thu Jun 14 03:25:14 PDT 2001
Uhm you misunderstood me.
I want XMLOutputter to ADD whitespace for to make the output more readable
for the purposes of debugging.
From: Ken Rune Helland [mailto:kenh at csc.no]
Sent: 14 June 2001 10:46
To: Kenworthy, Edward; jdom-interest at jdom.org
Subject: Re: [jdom-interest] Debugging Output
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
More information about the jdom-interest