I don’t understand why the xsd rule I have created for a date is not working.
The rule is: <xs:element name="scan_date" type="xs:date" />
which, accoring to XML Schema Date on W3Schools is specified in the following form “YYYY-MM-DD”, yet when the XML Parser in SQL encounters <scan_date>2006-12-15</scan_date> it fails because it doesn’t accept the date as valid, yet if I swap the 12 and 15 round it does.
I don’t understand why the xsd rule I have created for a date is
Share
A possible solution using
xs:stringand a regex restriction:… adopted from XSD date format overriding