I really can\'t understand this one: it looks like Android has the XMLGregorianCalendar class, because it is documented here. But if you go ahead and try to use it, that\'s
It looks like even though it's been in the API since v8, no version of Android has ever shipped with an implementation. Handy, right?
One solution is to download the Xerces2 Java implementation jar and include it on your project's build path.
Your code would be only slightly different:
DatatypeFactory datatype = DatatypeFactoryImpl.newInstance();