The following XML snippet validates fine against the xs:dateTime built-in
schema type using Xerces:
<StartTime> 2001-01-01T08:38:22 </StartTime>
However, it fails validation in XML Spy v4.3. I sent a bug report to
Altova, and their response was "This is not a bug. There is a leading space
which makes the tag invalid". Sure enough, if I remove the leading and
trailing space, XML Spy validates just fine:
<StartTime>2001-01-01T08:38:22</StartTime>
I found this also to be true for the xs:duration built-in schema type.
I looked at the W3C recommendation, and I don't see any mention of whether
leading/trailing spaces are invalid.
So, the question is, which one of the following is true:
1) Xerces has a bug which allows spaces for these types
2) This is a gray area that is interpreted differently by Xerces and Spy
3) Altova is full of it
Dan Stewart
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]