[jdom-interest] XMLOutputter and empty elements
brett.mclaughlin at lutris.com
Wed Sep 13 19:57:30 PDT 2000
Wow. This was such a good and simple suggestion that I put it into CVS
right now. Get the latest version, Nick, and do this:
XMLOutputter outputter = new XMLOutputter();
Now aren't I a nice guy ;-)
Nick Crossley wrote:
> 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
> To control your jdom-interest membership:
Brett McLaughlin, Enhydra Strategist
Lutris Technologies, Inc.
1200 Pacific Avenue, Suite 300
Santa Cruz, CA 95060 USA
More information about the jdom-interest