[jdom-interest] XMLOutputter and empty elements

Nick Crossley ndjc at continuus.com
Thu Sep 14 15:13:50 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();
> outputter.setExpandEmptyElements(true);
> outputter.output(myDoc);
> Now aren't I a nice guy ;-)

Yes!  That works fine, thanks!

Nick.





More information about the jdom-interest mailing list