[Solved] How to Assign NULL to XS:date XML Format


If you control the XSD, you might redefine type field from being strictly xs:date to being

<xs:simpleType name="dateOrEmpty">
    <xs:list itemType="xs:date" maxLength="1"/>
</xs:simpleType>

as answered by Michael Kay in a question regarding how to allow an XSD date to be an empty string.

solved How to Assign NULL to XS:date XML Format