Consider the below class:
@XmlRootElement public class Person { private String name; private BigDecimal weight; private Date dob; // getters and setter }If we were to marshal a Person instance the generated XML would be:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <person> <dob>2013-06-15T13:01:35.420+05:30</dob> <name>Test</name> <weight>65.876499999999992951416061259806156158447265625</weight> </person>The value for dob is a little complex. Could we change this to a more suitable value ?