Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Creating empty-tag-elements with JAXB?

843834Aug 12 2008 — edited Sep 4 2008
Hi,

is there any possibility to force JAXB to create empty-tag-elements? For example

<exampletag attribute="value" />

instead of

<exampletag attribute="value">
</exampletag>.

I really need to close my tags in the described way but have found no possibility to do so.

Thanks for your help
Daniel
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 2 2008
Added on Aug 12 2008
5 comments
7,985 views