hi,
Have you found a solution for the problem? I'm having the exact same
problem.
regards
Anders
Mark Emeny wrote:
>
>
> Hi,
>
>
>
>
> I have the following:
>
>
>
> @XmlElement(name = "DateOfBirth")
>
> @XmlSchemaType(name = "date")
>
> private Date dateOfBirth;
>
>
>
> and the XSD that follows running schemagen looks fine. However, when I
> marshal a java.util.Date into an XML document I am left with a
> xs:dateTime which of course violates the schema validation.
>
>
>
> Is there something I need to do to force the java.util.Date to be
> marshalled correctly when an xs:date schema type has been applied?
>
>
>
> Many thanks,
>
>
>
> Mark Emeny.
>
>
>
--
View this message in context: http://www.nabble.com/xs%3Adate-and-java.util.Date-tf2635293.html#a8447793
Sent from the java.net - jaxb dev mailing list archive at Nabble.com.