title: Creating an XML element with xsi:nil and attributes in .Net/Jaxb
body: <p>I have an XML Schema that says:</p>
  
  <pre>&lt;xs:element name="employerOrganization" nillable="true" minOccurs="1" maxOccurs="1"><br/>&#160;&#160;&lt;xs:complexType><br/>&#160;&#160;&#160;&#160;&lt;xs:sequence><br/>&#160;&#160;&#160;&#160;&#160;&#160;...<br/>&#160;&#160;&#160;&#160;&lt;/xs:sequence><br/>&#160;&#160;&#160;&#160;&lt;xs:attribute name="classCode" type="EntityClassOrganization" use="required"/><br/>&#160;&#160;&#160;&#160;&lt;xs:attribute name="determinerCode" type="EntityDeterminerSpecific" use="required"/><br/>&#160;&#160;&lt;/xs:complexType><br/>&lt;/xs:element></pre>
  
  <p>That means I must be able to create an instance that looks like this:</p>
  
  <pre>&lt;employerOrganization classCode="ORG" determinerCode="INSTANCE" xsi:nil="true"/></pre>
  
  <p>According to the XML Schema spec I <i>can</i> (<a href="http://www.w3.org/TR/xmlschema-0/#Nils" rel="nofollow">http://www.w3.org/TR/xmlschema-0/#Nils</a>). According to Microsoft .Net I <i>cannot</i> (<a href="http://msdn.microsoft.com/en-us/library/ybce7f69(v=vs.100).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ybce7f69(v=vs.100).aspx</a>) and as far as others tell me Jaxb cannot either.</p>
  
  <p>Are both .Net and Jaxb uncompliant? Can I override somehow to get the desired output?</p>