XML-serialization of EDate not compatible with xsd:dateTime? [message #421346] |
Tue, 05 August 2008 09:19 |
Eclipse User |
|
|
|
Originally posted by: joerg.von.frantzius.artnology.com
Hi,
the XML serialization of an EDate produces e.g.
"2003-10-04T14:11:47.000+0200". Unfortunately, this cannot be validated
as an xsd:dateTime, as a ":" is expected between hours and minutes in
the timezone.
Is there any way of serializing EDates compatible with xsd:dateTime?
Regards,
Jörg
|
|
|
Re: XML-serialization of EDate not compatible with xsd:dateTime? [message #421351 is a reply to message #421346] |
Tue, 05 August 2008 13:00 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Jörg,
XMLTypeFactory.eINSTANCE.convertDateTime(Object), which is deprecated
though, will do the trick. You could look at how it's implemented to
copy that.
Jörg von Frantzius wrote:
> Hi,
>
> the XML serialization of an EDate produces e.g.
> "2003-10-04T14:11:47.000+0200". Unfortunately, this cannot be
> validated as an xsd:dateTime, as a ":" is expected between hours and
> minutes in the timezone.
>
> Is there any way of serializing EDates compatible with xsd:dateTime?
>
> Regards,
> Jörg
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03042 seconds