First post, so sorry if this is a repeat. After looking around a bit I'm not finding any pre-existing answer that suits my needs.
I need to build a batch file that can parse an XML file that looks, in part, something like this:
<parameter>
<name>description</name>
<value>something something</value>
</parameter>
<parameter>
<name>project</name>
<value>ProjectName</value>
</parameter>
<parameter>
<name>email group to notify</name>
<value>EmailGroup</value>
</parameter>
I want to find the value associated with the "Project" parameter. I'm able to get the word "Project" with the below for statement (:job outputs it to a text file without the <name> tags), but I can't figure out how to get it parse the next line where the value is located.
for /f "delims=" %%i in ('findstr /i /c:"<name>project</name>" output.xml') do call :job "%%i"