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
You need to create the empty file entities_1.xml, because for some obscure reason >> won't create it with cmd as shell.
So use TYPE NUL > entities_1.xml just before your FOR loop, to create a zero-byte long file.