History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: SES-277
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Arjohn Kampman
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Sesame

Replace Sesame's own XMLDateTime with javax.xml.datatype.XMLGregorianCalendar?

Created: 31/May/06 03:30 PM   Updated: 09/Oct/06 10:24 AM
Component/s: RDF Model
Affects Version/s: None
Fix Version/s: None


 Description   
The class javax.xml.datatype.XMLGregorianCalendar that is available since Java 1.5 might be able to replace our own implementation for verification, normalization and comparisons of xsd:dateTime values. Conformance and performance of XMLGregorianCalendar will have to be investigated first.

 All   Comments   Change History      Sort Order:
Comment by Arjohn Kampman [09/Oct/06 10:23 AM]
XMLGregorianCalendar was found to do very lax parsing of values. It accepts a lot of values that are not correct dates according to the spec. Most notably, it accept the year "0000" which should have been rejected. Further, it isn't able to handle some of the correct test cases, like years outside the int range and the "24:00:00"
 time. Also, it isn't able to normalize dates to their canonical value; XMLGregorianCalendar.normalize() simply normalizes the timezone to UTC.

Conclusion: without any improvements to XMLGregorianCalendar, this class is unusable to validate xsd:dateTime instances.