Please help to guide me on the below .
I am trying to replace a list of strings in a XML file, the strings are getting replaced but its getting replaced throughout the file, but I am trying to Findstr to replace strings only in the line which starts with <OfferName>, the file is very big and it will have multiple occurrences of <OfferName> tag, so I cannot use the exact line number.
Below is the part of the code which I am currently using , please let me know how can I Include only the lines which start with <OfferName>
Code: Select all
for /f "delims=: tokens=1*" %%a in ('findstr /n "^" "Offer_letter.XML"') do (
set "line=%%b"
call :ReplaceStrings