Package io.github.threetenjaxb.core

XmlAdapters for the java.time API.

These classes implement XmlAdapter and can be used with the XmlJavaTypeAdapter annotation.

XJC Bindings Example

   <bindings xmlns="http://java.sun.com/xml/ns/jaxb" version="2.1"
             xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc">
       <globalBindings>
           <xjc:javaType name="java.time.LocalDate" xmlType="xs:date" adapter="io.github.threetenjaxb.core.LocalDateXmlAdapter" />
           <xjc:javaType name="java.time.LocalDateTime" xmlType="xs:dateTime" adapter="io.github.threetenjaxb.core.LocalDateTimeXmlAdapter" />
           <xjc:javaType name="java.time.YearMonth" xmlType="xs:gYearMonth" adapter="io.github.threetenjaxb.core.YearMonthXmlAdapter" />
           <xjc:javaType name="java.time.Duration" xmlType="xs:duration" adapter="io.github.threetenjaxb.core.DurationXmlAdapter" />
       </globalBindings>
   </bindings>  

Note: If you need support for XML Schema dateTime-timezones, use OffsetDateTime instead of LocalDateTime.