Hi,

  I'm using XMLBeans to generate an XML for given XSD file. 

  The XSD has a field with data type XS:gYear.

  The setter method has a convenience data type Calendar and I'm setting the 
Calendar object.

  Calendar calendar = Calendar.getInstance(); 
 calendar.set(Calendar.YEAR,2008);

  dateOfBirthType.setBirthYear(calendar);

  The resultant XML is coming in the following 

 <DateOfBirth>
        <BirthYear>2008-05:00</BirthYear>
 </DateOfBirth>

  I'm expecting the resultant XML to be 

<DateOfBirth>
        <BirthYear>2008</BirthYear>
 </DateOfBirth>

 Can somebody help me to oercome this issue?

Thanks,
Arun Kumar Dubagunta




-----------------------------------------
This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or
entity to which it is addressed. If the reader of this e-mail is
not the intended recipient or his or her authorized agent, the
reader is hereby notified that any dissemination, distribution or
copying of this e-mail is prohibited. If you have received this
e-mail in error, please notify the sender by replying to this
message and delete this e-mail immediately.

Reply via email to