title: ANT xml file loop, conditional write to other path
body: <p>I have a property file which is dynamic, an extract of this file might look like;</p>
  
  <pre><code> user1=password1
   user2=password2
   user3=password3 
  </code></pre>
  
  <p>And I have a xml file (which is also dynamic); </p>
  
  <pre><code>&lt;users&gt;
   &lt;user&gt;
   &lt;name&gt;user1&lt;/name&gt;
   &lt;credentials&gt;i-need-a-new-password&lt;/credentials&gt;
   &lt;/user&gt;
   &lt;user&gt;
   &lt;name&gt;user2&lt;/name&gt;
   &lt;credentials&gt;i-need-a-new-password&lt;/credentials&gt;
   &lt;/user&gt;
   &lt;user&gt;
   &lt;name&gt;user3&lt;/name&gt;
   &lt;credentials&gt;i-need-a-new-password&lt;/credentials&gt;
   &lt;/user&gt;
  &lt;/users&gt;
  </code></pre>
  
  <p>I need to replace the password for each user found in the property, and has to be replaced in the corresponding user-tag. Please advise</p>