JAXB has annotations that can solve this and I wouldn't at all be
suprised, given xmlbeans depth, that they would be able to as well.
Here's how you would do that in JAXB:

<xs:annotation>
   <xs:appinfo>
     <jaxb:globalBindings>
       <jaxb:javaType name="java.util.Calendar" xmlType="xs:date"
printMethod="gov.infoseg.mr.xtrans.jaxb_misc.DateConverter.printCalendar"
parseMethod="gov.infoseg.mr.xtrans.jaxb_misc.DateConverter.parseCalendar"/>
     </jaxb:globalBindings>
   </xs:appinfo>
 </xs:annotation>

So on every xs:date you would get the format you want. You might try
googling on xmlbeans or post to their mailing list for a similair
annotation or solution since its a pretty common problem.

HTH,
Robert

On 1/11/07, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
AFAIK , you can not do that , may be we can improve Axis2 to support that.

Thanks
Deepal

Thanks
Deepal

Danny Lin wrote:

> This is more of an XMLBeans question.
>
> I have something like this:
>
> org.apache.xmlbeans.XmlDate addNewPersonBirthDate();
>
> ....
>
> Axis2 is responding (in the actual XML document returning back to the
> client) with this:
>
> <PersonBirthDate>1934-12-16-05:00</PersonBirthDate>
>
>
>
> Is it possible to change the format, especially the time component
> (05:00)? Thanks.
>
>
>
> Danny
>
>
>

--
Thanks,
Deepal
................................................................
"The highest tower is built one brick at a time"



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to