[Mono-bugs] [Bug 435206] New: Xml schema validation fails to validate xs: dateTime attribute type.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 14 08:57:02 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=435206


           Summary: Xml schema validation fails to validate xs:dateTime
                    attribute type.
           Product: Mono: Class Libraries
           Version: 2.0
          Platform: x86
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.XML
        AssignedTo: atsushi at ximian.com
        ReportedBy: gorkempacaci at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Corporate Interoperability Test


Created an attachment (id=245420)
 --> (https://bugzilla.novell.com/attachment.cgi?id=245420)
Sample program that reproduces the case

An attribute on the root element is required by the schema with the type
"xs:dateTime". The existing data on the element in the xml document is "January
1st 1900", which is invalid for this type. It should have been in format
"2008-03-21T15:07:58".

Tested on .Net 3.5, validation invokes the ValidationEventHandler with the
message: "The 'bar' attribute is invalid - The value 'January 1st 1900' is
invalid according to its datatype 'http://www.w3.org/2001/XMLSchema:dateTime' -
The string 'January 1st 1900' is not a valid XsdDateTime value" But the Mono
2.0 RC4 runtime doesn't invoke the ValidationEventHandler.

Attached an sample code that produces the case.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list