Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #25919
| From | bw <derbosebar@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | XStream vs XMLGregorianCalendar |
| Date | 2011-01-30 01:18 -0800 |
| Organization | http://groups.google.com |
| Message-ID | <d4af9ddb-16e4-4e36-b22d-fb2a1ea125e3@f2g2000yqf.googlegroups.com> (permalink) |
Friends tell me the way out!
There xsd-diagram, with the help of her made JAXB java-class.
The class is filled with data, among other things, there are element
dateTo of the type javax.xml.datatype.XMLGregorianCalendar.
After this class does XStream XML, I get description of this item:
<dateTo
class="com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl">
<year>2011</year>
<month>1</month>
<day>30</day>
<timezone>180</timezone>
<hour>12</hour>
<minute>13</minute>
<second>34</second>
<fractionalSecond>0.315</fractionalSecond>
</ dateTo>
I do not like such a description, tell me, you can use XStream to get
out of the XML this form:
<dateTo>2011-01-30T09:13:34.356 Z</dateTo>?
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar
XStream vs XMLGregorianCalendar bw <derbosebar@gmail.com> - 2011-01-30 01:18 -0800 Re: XStream vs XMLGregorianCalendar Lew <noone@lewscanon.com> - 2011-01-30 13:19 -0500
csiph-web