I have created a simple XML document, generated a schema from it (which
Visual Studio makes everything a string element). I then went through and
changed all fields that are dates to the Date data type. Now, when I use
the datagrid to edit the data in the XML file and then switch back to the
raw XML text date, the dates are formatted like this
"1973-10-27T00:00:00.0000000-06:00" and not as I expected, which are
supposed to be a simple date, such as "1973-10-27" as per the W3C spec.
Also, when I validate the document, it fails on all date elements with this
error:
C:\Documents and Settings\DSlinn\Desktop\GroupImportXML\groupimport .xml(17):
The 'http://gms.ca/groupimport.xsd:EnrollmentDate' element has an invalid
value according to its data type. An error occurred at , (17, 54).
When I fix the date to not include the time information, it passes the
validation. Is this a bug, and if not, how can I prevent Visual Studio from
inserting the time information in my date elements?