How can I extract an STRING like \"US_NY\" between the tags from a XML file? I tried it with FINDSTR, but the line breaks are
You should use XML.EXE within batch to read an XML file. For more details go to http://xmlstar.sourceforge.net/
Batch File:
@echo off for /f %%i in ('XML.EXE sel -t -v "//LOCATION" CP.xml') do set var=%%i echo LOCATION is %var%
output:
LOCATION is US_NY