Link Details

Link 927177 thumbnail
User 884233 avatar

By screener
Published: Feb 20 2013 / 21:26

By default XJC, which is used to create Java classes from XML Schema, maps date, time and datetime XSD types to XMLGregorianCalendar in Java. Since java.util.Date is mostly used type to represent date and time in Java, we often needs to convert between XMLGregorianCalendar and Date. This article explains, How to convert XMLGregorianCalendar to Date in Java and vice-versa.
  • 6
  • 2
  • 1653
  • 730


Add your comment
User 388907 avatar

MCII replied ago:

0 votes Vote down Vote up Reply

" It's possible to customize XJC to generate Date instead of XMLGregorianCalendar " Yes!!

Add your comment

Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (6)

Voters Against This Link (2)

Apache Hadoop
Written by: Piotr Krewski
Featured Refcardz: Top Refcardz:
  1. Play
  2. Akka
  3. Design Patterns
  4. OO JS
  5. Cont. Delivery
  1. Play
  2. Java Performance
  3. Akka
  4. REST
  5. Java