Schema validation error when accepting datetime

518 views Asked by At

We have field in an XML which will have date along with Timestamp.

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

and in our Schema, we have defined that element as

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

But we are getting a fatal error as below

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

1

There are 1 answers

2
Robby Cornelissen On BEST ANSWER

That should be

type="xs:dateTime"
             ^

instead of

type="xs:datetime"