I'm using xidel to extract a value from a specific tag in a XML file, and export it as a var to cmd. However, the vars don't seem to be exported at all.
example I'm using:
xidel "in.xml" -e "{var1:=text()}" --output-format cmd
I get the output:
**** Retrieving:in.xml ****
**** Processing: in.xml ****
** Current variable state: **
SET var1=1234
(where 1234 is contained in in.xml)
but var1 is not set as a variable available from the command prompt window.
This is on a Windows 7 machine. Any insight would be much appreciated - I don't know if I'm using xidel incorrectly or there's a bug with cmd var output.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…