接受日期时间时架构验证错误

Schema validation error when accepting datetime

我们在 XML 中有字段,其中包含日期和时间戳。

EX : 2016-12-22 10:36:46

并且在我们的架构中,我们将该元素定义为

<xs:element name="REJECTTIME" minOccurs="0"  type="xs:datetime"/>

但是我们遇到如下致命错误

Element has type={http://www.w3.org/2001/XMLSchema}datetime, which does not exist.

应该是

type="xs:dateTime"
             ^

而不是

type="xs:datetime"