users@jaxb.java.net

How to write fixed content?

From: <dhoffer_at_michwave.com>
Date: Tue, 27 Nov 2007 12:37:44 -0500

How to I configure JAXB to write fixed data to disk?

I have an attribute (and/or element) with fixed xs:string content.
When I marshal the document the fixed content does not get saved to
the XML file.

I would expect the fixed content to always be written to disk and to
have a getXXX method on the object but no setXXX method. Instead what
I get is setXXX and getXXX methods with default value if nobody called
setXXX. How can I get fixed behavior?

Thanks much!