Decimal point removed from decimals in a Serialized XML

Posted by MiguelM on Stack Overflow See other posts from Stack Overflow or by MiguelM
Published on 2011-01-03T05:25:07Z Indexed on 2011/01/03 5:53 UTC
Read the original article Hit count: 233

Filed under:
|
|

I'm using XmlSerializer with classes created from a xsd using xsd.exe. It has worked fine for months.

Now I'm receiving reports that in some cases the created xml file has all decimals serialized without a decimal point, e.g. 123.45 is serialized as 12345.

I haven't been able to reproduce the problem, but I'm suspecting it may be related to localization.

This is my first C# project, so I may be overlooking something basic.

Could localization cause this problem?
How can I make the serialization process locale independent?

Any idea of something else that could cause this problem?

© Stack Overflow or respective owner

Related posts about c#

Related posts about xml-serialization