Extract content from xml tag with native windows tools

If the input sample.xml file contains lines like:
<SiteID>sontent here</SiteID>
I can extract content inside tags using syntax like
for /f "tokens=3 delims=>,<" %%a in ('type "r:\sample.xml" ^| findstr "</SiteID>"') do echo %%a-%computername%

No comments: