I came across the class XMLGregorianCalendar today.
I searched in Google regarding its usage but did not find any satisfying answer.
Hence can anyone answer the following questions?
- What is
XMLGregorianCalendar? - What is the usage of this class?
- How it is different from
GregorianCalendaror both of them are related?
The XML Schema standard specifies very precise rules about the functionality and representation of dates in XML. Those rules don’t match exactly what Javas
Calendar(orGregorianCalendar) uses.Therefore the
XMLGregorianCalendarclass was introduced, which follows the rules specified by the XML spec.