| Author |
Setting a date in Java class and I want to convert it into XML Gregorian format
|
saurabhthard aggarwal
Greenhorn
Joined: Nov 20, 2008
Posts: 22
|
|
Hi all
I'm setting a date in java class and i want to convert it into xml georgian format in a single line
.
is there any method available,how do i solve this problem.
I have this code with me
XMLGregorianCalendar xgc = DatatypeFactory.newInstance().newXMLGregorianCalendar();
xgc.setYear(1985);
xgc.setMonth(12);
xgc.setDay(17);
xgcCopy = DatatypeFactory.newInstance().newXMLGregorianCalendar(xgc.toXMLFormat());
please reply
|
 |
Jaikiran Pai
Marshal
Joined: Jul 20, 2005
Posts: 8210
|
|
Please KeepItDown.
|
[My Blog] [JavaRanch Journal]
|
 |
 |
|
|
subject: Setting a date in Java class and I want to convert it into XML Gregorian format
|
|
|