Here you can find the source of getMilliseconds(XMLGregorianCalendar xmlCalendar)
public static long getMilliseconds(XMLGregorianCalendar xmlCalendar)
//package com.java2s; //License from project: Open Source License import javax.xml.datatype.XMLGregorianCalendar; public class Main { public static long getMilliseconds(XMLGregorianCalendar xmlCalendar) { return xmlCalendar.toGregorianCalendar().getTimeInMillis(); }/*w ww . ja v a 2s. c o m*/ }