[jdom-interest] XMLOutputter and empty elements

Nick Crossley ndjc at continuus.com
Wed Sep 13 17:35:12 PDT 2000

For various reasons (post processing by other tools that are not proper XML
I need to have empty elements in my XML shown as <TAG></TAG> and not as

I am doing this by extending from XMLOutputter, and redefining printElement.
However, with the current structure of printElement, I have to repeat a lot
of code
I really do not want to know about, in the handling of name spaces.

It would be convenient if there was an option not to abbreviate empty
or if printElement was restructured to make subclassing more convenient.

Nick Crossley.
ndjc at continuus.com

More information about the jdom-interest mailing list