Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Hook to modify how xsd:double is serialized by XMLResource
Hook to modify how xsd:double is serialized by XMLResource [message #987235] Sat, 24 November 2012 15:40 Go to previous message
David Rees is currently offline David Rees
Messages: 47
Registered: September 2012
Member
Could someone point me to where I can hook into how the XSD types are serialized by XMLResource? I am specifically interested in modifying how xsd:double types are written.

Right now, even if they have no fractional portion it still puts a ".0" at the end. For example:
<MYFLOAT>7.0</MYFLOAT>
<MYFLOAT>0.0</MYFLOAT>


For consistency with external tools we are integrating with I would prefer it to not add the .0 when there is no fractional portion. For example:
<MYFLOAT>7</MYFLOAT>
<MYFLOAT>0</MYFLOAT>

Thanks,
dave
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:[EMFStore] Workspace singularity
Next Topic:Teneo EMF @OneToOne and @ManyToOne
Goto Forum:
  


Current Time: Sat May 18 20:46:36 EDT 2013

Powered by FUDForum. Page generated in 0.01569 seconds