Using C# and .Net 4.0
I have a generated schema that looks like this:
<xsd:element name="EstimatedDate" minOccurs="0" nillable="true" default="1900-01-01T00:00:00">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="xsd:dateTime">
<xsd:attribute name="origVal" type="xsd:dateTime" use="optional" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
When I serialize the object with a null value I get:
<EstimatedDate xsi:nil="true" />
But I am getting a deserialization: "There must be no fixed value when an attribute is 'xsi:nil' and has a value of 'true'."
When I look at the XML specification I do not see that nillable and default properties are mutually exclusive, but my other dateTime XML types that are nillable but do not have a default property work correctly.