Using batch code to mass xml formatting?
问题 I have a folder that contains 50 subfolders each one of these contains 2 xml files O_DATA.xml S_DATA.xml Since they appear in one line in Notepad, I have to fix the formatting. I have found from a similar question here this code: @echo off setlocal EnableDelayedExpansion rem Create a variable with spaces set "spaces= " for /L %%i in (1,1,5) do set "spaces=!spaces!!spaces!" rem Read the line for /F "delims=" %%a in (input.txt) do set "line=%%a" set level=0 :nextTag rem Separate first tag from