in reply to Replace string in one file using input from another file

Generally, the idea would be to load the Lookup.csv file into a hash at start, and then to process the other file and make changes where needed.

Are the changes always to be made in

<LinkValue><XREF>...</XREF></LinkValue>
tags, or do they have to be done also in other tags?