Suppose I have a JAXB element like this:
@XmlElement
private double value;
this will generate XML like this:
<value>3.14159</value>
Now, how do I modify my declaration (or customize JAXB marshalling) to generate XML like this instead:
<value type="double">3.14159</value>
The type
attribute will always have the same value, i.e. "double".
Thanks!