[jdom-interest] suppress empty tags
mail at kilianbraune.de
Tue Feb 24 08:45:54 PST 2004
I am desperately looking for a soultion on "how to suppress empty tags"
while creating an XML via JDOM. For the time being I am checking for
each built element if its content is null and if not then build element.
But it would be much more "elegant" if i would have a general method for
this perhaps referring to the XMLOutputter.
Do you have an idea how i could suppress empty tags easier as the way I
do it right now? How can I e.g. remove children tags in dependance on
their content resp. "no content"?
More information about the jdom-interest