×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: XML
Posted by: Jonathan Vila López
Added: May 22, 2014 9:01 AM
Views: 14
Tags: binding jaxb
binding file
  1. <jxb:bindings version="2.0" xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
  2.                            xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
  3.                            xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  4.                                 jxb:extensionBindingPrefixes="xjc">  
  5.     <jxb:globalBindings>
  6.       <xjc:simple/>
  7.       <jxb:javaType name="java.util.Calendar" xmlType="xsd:date" parseMethod="javax.xml.bind.DatatypeConverter.parseDate" printMethod="javax.xml.bind.DatatypeConverter.printDate"/>    
  8.       <jxb:javaType name="java.util.Calendar" xmlType="xsd:dateTime" parseMethod="javax.xml.bind.DatatypeConverter.parseDateTime" printMethod="javax.xml.bind.DatatypeConverter.printDateTime"/>    
  9.     </jxb:globalBindings>
  10. </jxb:bindings>