I have a property file which is dynamic, an extract of this file might look like;
user1=password1
user2=password2
user3=password3
And I have a xml file (which is also dynamic);
<users>
<user>
<name>user1</name>
<credentials>i-need-a-new-password</credentials>
</user>
<user>
<name>user2</name>
<credentials>i-need-a-new-password</credentials>
</user>
<user>
<name>user3</name>
<credentials>i-need-a-new-password</credentials>
</user>
</users>
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