title: Empty elements for primitve datatypes forbidden in XSD
body: <p>I encountered a parsing error with Apache CXF while processing a webservice response. What it comes down to is an empty element being returned:</p>
  
  <pre><code>&lt;myValue /&gt;
  </code></pre>
  
  <p>The element definition is as follows:</p>
  
  <pre><code>&lt;xsd:element name="myValue" type="xsd:float" minOccurs="0"&gt;
  </code></pre>
  
  <p>Now I've read on the CXF mailing list that an <a href="http://permalink.gmane.org/gmane.comp.apache.cxf.user/7739" rel="nofollow">empty value is not allowed by the XSD-spec</a>:</p>
  
  <blockquote>
    <p>Well, there isn't a workaround for
    this as it's not a bug.   An empty
    element  is not valid for any Decimal
    or Date type or anything like that.<br>
    Thus, it  SHOULD throw an exception.<br>
    What are you expecting it to do?</p>
  </blockquote>
  
  <p>Now here comes the question: Where exactly can I find this constraint in the XML Schema specification?</p>