users@jaxb.java.net

empty element

From: David Massart <david.massart_at_longboy.eun.org>
Date: Mon, 19 May 2003 11:57:40 +0200

Hi there,


Sorry if the question is studid, I can't find out how to generate an empty element.

I have no problem to add a value to an element or to completly ignore it,

xmlHeader.setMessageId("my message ID") ;

<header>
...
<messageId>my message ID</messageId>
...
</header>

but I'm not able to generate an empty element like the following

<header>
...
<messageId/>
...
</header>

David

--
The original point and click interface was a Smith and Wesson.