tags:

views:

18

answers:

1

Hi all,

I have a xml element with following schema:

<xs:element name="Date" type="xs:date" nillable="true" />

But it failed the validation with following node.

<Date />

Why the nillable attribute doesn't work for this? Thanks!

I use .net XmlReader for validation

Thanks in advance!

+1  A: 

Try:

<Date xsi:nil="true"></Date>
Mark Byers