I have an XML file and I have a batch file to search for a specific string within that file, replace it with a string defined by the user and then output it to a new XML fil
check out my answered question about the exact same topic, it was answered perfectly.
how to replace a string on the second line in a text file using a batch file?
hope this helps!