[jdom-interest] No output for empty elements

simon.knupfer at basoft.ch simon.knupfer at basoft.ch
Thu Sep 6 02:26:56 PDT 2001


hi,

i use the XMLOutputter (jdom b7) for writing an xml document.

i don't like to have empty elements in my xml document.
so, is it possible to delete an element, when it's empty ?

i've found a method called: setExpandEmptyElements(boolean inFlag), which
handles to print empty elements in this way <element />.

i like to have a method in this way: setDeleteEmptyElements(boolean inFlag)
or something like this.

any suggestions ?

simon


-------------- next part --------------
"
This e-mail may contain confidential material. It is intended only for
the person or entity which it is addressed to. Any review,
retransmission, dissemination or other use of this information by
persons or entities other than the intended recipient is prohibited. If
you received this e-mail in error, please immediately notify the sender
or The Swiss Raiffeisen Group and delete the material from any and all
computers it may be stored on.
Any views or opinions expressed in this e-mail are those of the sender
and do not necessarily coincide with those of The Swiss Raiffeisen
Group. Therefore this e-mail does not represent a binding agreement nor
an offer to deal.
E-mail transmission cannot be guaranteed to be secure or error-free.
Information could be intercepted, corrupted, lost, destroyed,
incomplete or may contain viruses. Neither The Swiss Raiffeisen Group
nor the sender can accept any liability for any kind of damage as the
result of viruses or transmission errors.
"


More information about the jdom-interest mailing list