title: Beautiful Soup parsing an XML file
body: <p>I am writing a simple Python using Beautiful Soup to parse the data I need out of an xml file. It's working how I need it to, but I have one ask of you guys as I have tried to Google this but can't seem to find what I am looking for.</p>
  
  <p>Sample of XML string:</p>
  
  <pre><code>&lt;ProductAttribute MaintenanceType="C" AttributeID="Attachment Type" PADBAttribute="N" RecordNumber="1" LanguageCode="EN"&gt;Clamp-On&lt;/ProductAttribute&gt;
  </code></pre>
  
  <p>I am needing the <strong>AttributeID</strong> within the ProductAttribute. When I write, the below I am able to grab the value "Clamp-On" but I need AttributeID to tell me what Clamp-On is referencing.</p>
  
  <pre><code>attributes[part.find('PartNumber').get_text()] = [x.get_text() for x in part.find_all('ProductAttribute')]
  
  for key, value in attributes.items():
       for v in value:
       print(v)
  </code></pre>
  
  <p>Any guidance is appreciated before negative feedback. Thanks!</p>