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