Parse through files

What I am trying to do is scan through a list of xml files and detect a certain phrase.

The phrase in question is

<PrimaryBatteryRecallStatus>recall needed</PrimaryBatteryRecallStatus>

So I would like to have powershell go through each xml file, detect the “recall needed” and output a list of the file names of where it was detected.

Is this possible and if so how would I go about doing this?

submitted by /u/Weasel118
[link] [comments]

Leave a Reply