title: How to deserialize XML number from misc formats
body: <p>System we support uses XML data (that meet the same XSD schema) from several clients. Some clients use "," as numeric separator. Other clients use "." </p>
  
  <p>Checking files against XSD-schemas is ok, then I try to deserialize files to extract data:</p>
  
  <pre><code>string xml ... &lt;-- XML data 
  var xmlSerializer = new XmlSerializer(typeof(MyType));    
  MyType data = (MyType)xmlSerializer.Deserialize(new StringReader(xml));
  // do something usefull with data 
  </code></pre>
  
  <p>I get error for files where .net framework can't convert numbers with delimiter that differs from system one</p>
  
  <pre><code> System.FormatException: Input string was not in a correct format.   
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer&amp; number, NumberFormatInfo info, Boolean parseDecimal)...
  </code></pre>
  
  <p>How should I adopt my code to deserialize data in all possible number formats from all of our clients? </p>
  
  <p>Thank you in advance! </p>