title: TeamCity Build Configuration to populate environment variable from XML
body: <p>When editing the settings for a Build Configuration in TeamCity, is there a way of parsing an XML file to generate an environment variable that will later be used in the Build Steps? The XML file I want to parse (let's say version.xml) contains the version number that is going to be used later:</p>
  
  <pre><code>&lt;Version&gt;
      &lt;Major&gt;2015&lt;/Major&gt; 
      &lt;Minor&gt;2&lt;/Minor&gt; 
  &lt;/Version&gt;
  </code></pre>
  
  <p>And I want to be able to use <code>%env.VersionNumber%</code> later to get <code>"2015.2"</code></p>