i use a xsd schema with an element datatype double like this:
<xsd:element name="value" type="xsd:double"/>
I use the jaxB unmarschaller to create an java class with the appropriate object and attributes. The result looks like this:
protected double value;
Now, the xml data is able to send nullable value elements, but i am not in the position to fit the xsd schema to the datatype Double.class. Is it possible to overwrite the attribute in the java class?
If you cannot modify the XML schema to make the value element nillable, then you could do the following with a JAXB external bindings file:
External Bindings File (binding.xml)
You could use an external bindings file like the following:
XML Schema – double.xsd
The above bindings file applies to an XML Schema that looks like the following:
XJC Call
Generated Class