title: How to set XML parser's Decimal point character?
body: <p>I'm reading attribute fields in an XML document where the decimal point always is <code>'.'</code> and the computer local may differ from this (in my own case it is <code>','</code>).</p>
  
  <p>I tried to set the global <code>FormatSettings.DecimalSeparator</code> to <code>'.'</code> but it has no effect on the XML parser. This is a very compressed version of the problem.</p>
  
  <pre><code>_di_IXMLDocument Document;
  _di_IXMLNode     Node;
  float            Value;
  
  Document = LoadXMLDocument("Test.xml");
  Node = Document-&gt;DocumentElement;
  FormatSettings.DecimalSeparator = '.';
  Value = Node-&gt;GetAttribute("scale");
  </code></pre>
  
  <p>Assume this XML file.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;myroot scale="1.234"&gt;
  &lt;/myroot&gt;
  </code></pre>
  
  <p>After reading the attribute scale I always get the result striped on the '.' character resulting in Value = 1234 instead of 1.234.</p>
  
  <p>The number of decimals are not constant, they can be 1 or 4 or anything in between. This also goes for the whole part, so dividing by 100 or 1000 will not solve the problem.</p>
  
  <p>I would preferable have the OLEVariant to accept the <code>'.'</code> as a decimal point (my local is <code>','</code>).</p>
  
  <p>I had a look at <code>SetLocalInfo()</code> but this will set the format for <strong><em>ALL</em></strong> applications. The <code>getlocale()</code> function manipulates the current thread but I have not found a way to explicitly specify the character to use. It seems like it is only possible to select a code page or localization, as in a country.</p>
  
  <p><strong>EDIT</strong><br>
  I tried to use <code>setlocal()</code> and select <code>English-US</code> as localization. Even if US are using <code>'.'</code> as the decimal separator, the XML Parsers seems to ignore this.</p>
  
  <p>If I manually change the <code>'.'</code> to a <code>','</code> in the XML file, it works fine. But the XML file is a third party file, which I have no control of. So I really need to read it as it is  with a <code>'.'</code> decimal separator</p>