I'm trying to parse a document (sax) against a schema that has the
following...

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";
....other stuff here....
<xsd:element  name='receipt_datetime' minOccurs='1' maxOccurs='1' type
='xsd:dateTime'/>

In my document I have the following for receipt_datetime
<receipt_datetime>2001-10-18T16:00</receipt_datetime>

And I'm getting a SaxException:
Caught Exception (Datatype error: In element 'receipt_datetime' : Value
'2001-10-18T16:00' is not legal value for current datatype. String index
out of range: 16.

I'm a relative java newbie but I've been working with XML for a couple of
years....I don't understand why it thinks this data is illegal..??

thanks
Doug

Reply via email to