Example : In test.xml, I have
<head>
<file name="input">
<above>
<tag point="x"/>
</above>
<below>
<result first="00"/>
</below>
</file>
<file name="output">
<above>
<tag point="y"/>
</above>
<below>
<result first="11"/>
</below>
</file>
</head>
I should read this XML in batch script where i should get value “11” .
This “11” is found inside tag in tag in .
I have to get only the value “11” in the above specified path.
This is an example where in a real scenario there can be different value in place of “11”.
Thanks in advance
or in command prompt:
this will work only if the structure of your file is as this above (specifically the new lines).
Better use xml startlet http://xmlstar.sourceforge.net/ . More info about the trick with the for – >
http://ss64.org/viewtopic.php?id=1544
http://ss64.org/viewtopic.php?id=1572