level 4
@echo off&setlocal ENABLEDELAYEDEXPANSION
set /P xml=<"%~f1"
SET xmltag=%~2
set tempxml=!XML:^<%xmltag%^>=^|!
set tempxml=!tempxml:^</%xmltag%^>=^|!
for /f "tokens=%~3 delims=|" %%i IN ("!tempxml!") DO (set "res=%%i")
ENDLOCAL & SET "%~4=%res%"
2010年08月08日 12点08分
1