title: C# Read xml file and assign values to variables
body: <p>I am trying to get the value of the item "Terminal ID" and "Current Configuration" and assign them to a variable.</p>
  
  <p>I have found different examples on the internet but no one have the result what i want.</p>
  
  <p>XML File:</p>
  
  <pre><code>&lt;TerminalOverview xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bmt.BmtSharp.WebInterface.Backend.API.App.Home.Model"&gt;
    &lt;InfoItems&gt;
      &lt;InfoItem&gt;
        &lt;Name&gt;Device name&lt;/Name&gt;
        &lt;Value/&gt;
      &lt;/InfoItem&gt;
      &lt;InfoItem&gt;
        &lt;Name&gt;Terminal ID&lt;/Name&gt;
        &lt;Value&gt;253896528&lt;/Value&gt;
      &lt;/InfoItem&gt;
      &lt;InfoItem&gt;
        &lt;Name&gt;Current Configuration&lt;/Name&gt;
        &lt;Value&gt;BmtVersion - 1.1.32&lt;/Value&gt;
      &lt;/InfoItem&gt;
      &lt;InfoItem&gt;
        &lt;Name&gt;Local Time&lt;/Name&gt;
        &lt;Value&gt;15/10/2017 13:58:14&lt;/Value&gt;
      &lt;/InfoItem&gt;
      &lt;InfoItem&gt;
        &lt;Name&gt;Time zone&lt;/Name&gt;
        &lt;Value&gt;Amsterdam&lt;/Value&gt;
      &lt;/InfoItem&gt;
    &lt;/InfoItems&gt;
    &lt;Message xmlns="http://schemas.datacontract.org/2004/07/Bmt.BmtSharp.WebInterface.Backend.API.Common.Models" i:nil="true"/&gt;
    &lt;Success xmlns="http://schemas.datacontract.org/2004/07/Bmt.BmtSharp.WebInterface.Backend.API.Common.Models"&gt;true&lt;/Success&gt;
  &lt;/TerminalOverview&gt;
  </code></pre>
  
  <p>I want the Value of "Terminal ID" to be assigned to variable terminalID and the value of "Current Configuration" to be assigned to variable softwareVersion. </p>
  
  <p>How can I achieve this?</p>