title: XML: How to get Elements by Attribute Value - Python 2.7 and minidom
body: <p>I want to get a list of XML Elements based <strong>first</strong> on TagName and <strong>second</strong> on Attribute Value. 
  I´m using the xml.dom library and python 2.7. </p>
  
  <p>While it´s easy to get the first step done:</p>
  
  <pre><code>from xml.dom import minidom
  xmldoc = minidom.parse(r"C:\File.xml")
  PFD = xmldoc.getElementsByTagName("PFD")
  PNT = PFD.getElementsByTagName("PNT")
  </code></pre>
  
  <p>I´ve been looking around but cannot find a solution for the second step. Is there something like a <code>.getElementsByAttributeValue</code> that would give me a list to work with?</p>
  
  <p>If the XML looks like this</p>
  
  <pre><code>&lt;PFD&gt;
       &lt;PNT A="1" B=.../&gt;
       &lt;PNT A="1" B=.../&gt;
       &lt;PNT A="2" B=.../&gt;
  &lt;/PFD&gt;
  </code></pre>
  
  <p>In need all PNTs where A="1" in a list.</p>