B
bw
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>?
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>?