Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » XML-serialization of EDate not compatible with xsd:dateTime?
XML-serialization of EDate not compatible with xsd:dateTime? [message #421346] Tue, 05 August 2008 09:19 Go to next message
Eclipse UserFriend
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 Go to previous message
Ed Merks is currently offline Ed MerksFriend
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/
Previous Topic:Exception launching the Eclipse Platform:...
Next Topic:Package URIs and a Disconnected Network
Goto Forum:
  


Current Time: Tue Apr 23 11:56:19 GMT 2024

Powered by FUDForum. Page generated in 0.03042 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top