Hi,
I've been trying to write some schema to validate the Value element of an Eq
element but to no avail. If the Value Element is off type DateTime then the
node should be able to contain text (the actual date string) or the <Today
/> element.
I can write schema to validate either one off the options seperately but
cannot write it in a way which allows either one off the options.
Hope that makes since, any help would be greatly appreciated.
I've included some sample XML of what I'm trying to validate below.
Cheers,
Paul
<And>
<Eq>
<FieldRef Name="DueDate" />
<Value Type="DateTime">
<Today />
</Value>
</Eq>
<Eq>
<FieldRef Name="DueDate" />
<Value Type="DateTime">11/11/05</Value>
</Eq>
</And>