[Mono-list] Xml validation problem with xsd, date and timezone

Marc Bettex bettex at epsitec.ch
Thu Feb 9 13:23:08 UTC 2012


Hi,

I use an xsd file in order to validate an xml file in my application. In
this file, I have some elements of the type date ( as defined by the W3C
here http://www.w3.org/TR/xmlschema-2/#date ). The link specifies that a
date can have a time zone.

If I have such an element without the timezone, the document is successfully
validated but if I have such an element with a timezone, the document is
rejected. I think this is a bug and I have found this topic here which
suggests that it is known (
http://mono.1490590.n4.nabble.com/RE-XML-deserialization-System-FormatException-on-System-DateTime-ParseExact-td1517226.html
)

Does anybody have an idea of if there is a workaround for this issue or if
I'm missing something ?

Thanks,

Marc

--
View this message in context: http://mono.1490590.n4.nabble.com/Xml-validation-problem-with-xsd-date-and-timezone-tp4372806p4372806.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list