Xsd:dateTime offset range +14:00/-14:00 fails Schema Validation
Hi,
I'm current using lxml python library to perform xsd validations, my environment versions: Python3.7 lxml.etree : (4, 4, 1, 0) libxml used : (2, 9, 9) libxml compiled : (2, 9, 9) libxslt used : (1, 1, 33) libxslt compiled : (1, 1, 33)
We try to validate a XML file using XSD that has a defined column of xsd:dateTime and we received a date value of '2019-06-06T00:00:00+14:00'. However we realized that validations fail when the offset goes above 13:59 and below -13:59 using etree.parse or xml_schema.validate.
According to XMLSchema documentation: https://www.w3.org/TR/xmlschema11-2/#dateTime. The valid offset range is +14:00 and -14:00. Why is lxml failing '2019-06-06T00:00:00+14:00'? Is there something we're missing or is this bug existing in libxml2?
Example code:
schema = open('schema.xsd')
xml_obj = etree.parse(schema)
xml_schema = etree.XMLSchema(xml_obj)
parser = etree.XMLParser(schema=xml_schema)
etree.parse(xml_file_content, parser)
Error: someDate': '2019-06-06T00:00:00+14:00' is not a valid value of the atomic type 'xs:dateTime'
Thank you.