title: How to modify xml elements from an xml file in jenkins
body: <p>I have an issue with my pipeline. I have an XML file in my project repo and I will like to read this file and change values after my checkout stage.</p>
  
  <p>verNum.xml</p>
  
  <pre><code>&lt;Version&gt;1.0.0 &lt;/Version&gt;
  </code></pre>
  
  <p>and my jenkinsfile</p>
  
  <pre><code>node {
      stage ('checkout') {
      .......
      }
      stage ('readfile') {
          readFile("verNum.xml")
      }
  }
  </code></pre>
  
  <p>I would increment the last digit of the version number with my build number. say something like this <code>1.0.${BUILD_NUMBER}</code>. </p>
  
  <p>Your help is highly welcomed.</p>