1) There are values in txt
160 170 180 190 2) there is xml
<cars> <car><speed>aaa160bbb</speed></car> <car><speed>ccc170ddd</speed></car> <car><speed>eee180fff</speed></car> <car><speed>ggg190hhh</speed></car> Search for values from the txt file in the xml file and, if found, then replace with 11111. If not, then read another value from txt
It should work
<cars> <car><speed>aaa11111bbb</speed></car> <car><speed>ccc11111ddd</speed></car> <car><speed>eee11111fff</speed></car> <car><speed>ggg11111hhh</speed></car> </cars> And it would be desirable in winforms statusStrip that in the process of searching and replacing the counter is displayed (as in the screenshot: Processed elements / all elements in txt):
And at the end of the replacements "display the number of speed tags found".
You can pause for a few seconds after every 5000 replacements.

<speed>ggg190hhh</speed>can be only one 190 or several? if one that see my answer. - Stack