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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to