Here you can find the source of xmlGregorianCalendarToDate(XMLGregorianCalendar cal)
public static Date xmlGregorianCalendarToDate(XMLGregorianCalendar cal) throws DatatypeConfigurationException
//package com.java2s; //License from project: Open Source License import java.util.Date; import java.util.GregorianCalendar; import javax.xml.datatype.DatatypeConfigurationException; import javax.xml.datatype.XMLGregorianCalendar; public class Main { public static Date xmlGregorianCalendarToDate(XMLGregorianCalendar cal) throws DatatypeConfigurationException { GregorianCalendar gregorianCalendar = cal.toGregorianCalendar(); return gregorianCalendar.getTime(); }/*from w w w. j av a2 s .c o m*/ }