users@jaxb.java.net

Re: empty element

From: Robert Lowe <rmlowe_at_rmlowe.com>
Date: Mon, 19 May 2003 18:07:16 +0800

 How about xmlHeader.setMessageId(null)?


----- Original Message -----
From: "David Massart" <david.massart_at_longboy.eun.org>
To: <JAXB-INTEREST_at_JAVA.SUN.COM>
Sent: Monday, May 19, 2003 5:57 PM
Subject: empty element


> 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.