I have an xml document that I have generated from a Fortify scan. Currently I have a xml doc that looks like this:
<Chart chartType="table">
<Axis>Fortify Priority Order</Axis>
<MajorAttribute>Analysis</MajorAttribute>
<GroupingSection count="2">
<groupTitle>High</groupTitle>
</GroupingSection>
<GroupingSection count="101">
<groupTitle>Low</groupTitle>
</GroupingSection>
<GroupingSection count="5">
<groupTitle>Medium</groupTitle>
</GroupingSection>
</Chart>
What I want to do is parse through this doc and pull out the High, Medium, and Low counts and assign them to a variable to pass to another script.
My problem is when I pull the xml file into powershell, how do I get the count for High findings?
Currently script:
$xml = [xml](get-content $file)
$xml.GetElementsByTagName('groupTitle') | Select-Object -Property 'High'