Extracting XML Tag Values Based on a Flag in Other Tag Using Batch

paisapimp

New Member
I am a beginner in writing batch scripts and your help on this is very much apreciated. Below is the xml and I need to extract all names whose flag is "on" to a txt file. There are several other category tag instances.\[code\]<Head> <Category name="RIVERTD" flag="on" location="SG002"> </Category> <Category name="BRETRED" flag="on" location="IT213"> </Category> <Category name="AMERAND" flag="off" location="US212"> </Category></Head>\[/code\]So, the output I'm looking is as below\[code\]RIVERTDBRETRED\[/code\]Many thanks in advance.
 
Back
Top