I am trying to read string from .xml file tag into variable
<Dept Firmid="0123" Name="abc"/>
To get FileDate=01/01/2000
I am using
for /F "tokens=2 delims= " %%i IN ('findstr /L "FileDate" D:\temp\myfile.xml) do call set var1=%%i
set set loaddate= %var1:~10,10%
I want to have loaddate=01/01/2000
but by using above command var1 is not able to retrieve required value.beacuse there is no delemiter which i can specify as its takes space by defualt delimeter or is there any other way by which i can add space in Tag.
Please suggest me what should I do to fix this problem
Thank you all for any suggesion.
Please help me out to encounter this problem.