title: Java JaxB generation, How do I get a bigDecimal from my xsd?
body: <p>I have an xsd annotation that I am trying to get to Marshal into a java object.  I would like the java to end up with BigDecimal for its value.  What do I enter in the xsd to make it do this?  I am using an xjc ant task</p>
  
  <pre><code>&lt;xjc schema="my.xsd" destdir="generated" header="false" extension="true" /&gt;
  </code></pre>
  
  <p>Here is the relevant xsd - </p>
  
  <pre><code>&lt;complexType name="Size"&gt;
      &lt;attribute name="height" type="BigDecimal"&gt;&lt;/attribute&gt; &lt;!-- this is wrong--&gt;
  &lt;/complexType&gt;
  </code></pre>
  
  <p>I would like to end up with this for the generated class -</p>
  
  <pre><code>public class Size { 
  @XmlAttribute(name = "height")
      protected BigDecimal height;
  }
  </code></pre>