File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes  how to set 2011-11-06T14:34:16.679+02:00 into XMLGregorianCalendar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark " how to set 2011-11-06T14:34:16.679+02:00 into XMLGregorianCalendar" Watch " how to set 2011-11-06T14:34:16.679+02:00 into XMLGregorianCalendar" New topic
Author

how to set 2011-11-06T14:34:16.679+02:00 into XMLGregorianCalendar

Meir Yan
Ranch Hand

Joined: Apr 27, 2006
Posts: 597
im building JAXWS client , one of the methods get XMLGregorianCalendar . now i need to format this data 2011-11-06T14:34:16.679+02:00 to be set into XMLGregorianCalendar. how can it be done .
the date is taken from sniffing other clients that connecting to the WS server .
John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
I have removed a ':' from the input string timezone indicator to parse into Date.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to set 2011-11-06T14:34:16.679+02:00 into XMLGregorianCalendar