I have an xsd annotation which I am trying to get to the marshal in a java object. I would like java to end up with BigDecimal for its meaning. What can I type in xsd to do this? I am using xjc ant task
<xjc schema="my.xsd" destdir="generated" header="false" extension="true" />
Here is the corresponding xsd -
<complexType name="Size"> <attribute name="height" type="BigDecimal"></attribute> <!-- this is wrong--> </complexType>
I would like to end this with the generated class -
public class Size { @XmlAttribute(name = "height") protected BigDecimal height; }
java xml xsd jaxb bigdecimal
spartikus
source share