title: Parsing song names and the like from a XML file in Python
body: <p>Haven't asked a question on SO in a while for fear of being blasted, but I'm really stuck. </p>
  
  <p>Yes, I have looked at the other answers to parsing from a XML file. By some combination of my incompetence and my inexperience, I can't seem to parse information from an XML file describing a playlist I made.</p>
  
  <p>I have no experience parsing XML files but I still don't see what I'm doing wrong. As a novice in this area, I'd like answers that teach rather than just recommending such and such library, as that's no way to learn.</p>
  
  <hr>
  
  <p>Here's the top of the XML file and the first song in the XML file I'm parsing. Sorry I don't have a generalized version of this, as I suspect my problem may arise from the design of this file, but I'd be glad to be wrong.</p>
  
  <pre><code>?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
  &lt;plist version="1.0"&gt;
  &lt;dict&gt;
      &lt;key&gt;Major Version&lt;/key&gt;&lt;integer&gt;1&lt;/integer&gt;
      &lt;key&gt;Minor Version&lt;/key&gt;&lt;integer&gt;1&lt;/integer&gt;
      &lt;key&gt;Date&lt;/key&gt;&lt;date&gt;2015-10-05T09:48:26Z&lt;/date&gt;
      &lt;key&gt;Application Version&lt;/key&gt;&lt;string&gt;12.2.2.25&lt;/string&gt;
      &lt;key&gt;Features&lt;/key&gt;&lt;integer&gt;5&lt;/integer&gt;
      &lt;key&gt;Show Content Ratings&lt;/key&gt;&lt;true/&gt;
      &lt;key&gt;Library Persistent ID&lt;/key&gt;&lt;string&gt;4EFDC340CA35F4A8&lt;/string&gt;
      &lt;key&gt;Tracks&lt;/key&gt;
      &lt;dict&gt;
          &lt;key&gt;1467&lt;/key&gt;
          &lt;dict&gt;
              &lt;key&gt;Track ID&lt;/key&gt;&lt;integer&gt;1467&lt;/integer&gt;
              &lt;key&gt;Name&lt;/key&gt;&lt;string&gt;Gorgeous (feat. Kid Cudi &amp;#38; Raekwon)&lt;/string&gt;
              &lt;key&gt;Artist&lt;/key&gt;&lt;string&gt;Kanye West&lt;/string&gt;
              &lt;key&gt;Album Artist&lt;/key&gt;&lt;string&gt;Kanye West&lt;/string&gt;
              &lt;key&gt;Composer&lt;/key&gt;&lt;string&gt;Che Smith/Mike Dean/Corey Woods/Ernest Wilson/Roger McGuinn/Scott Mescudi/Gene Clark/Malik Jones&lt;/string&gt;
              &lt;key&gt;Album&lt;/key&gt;&lt;string&gt;My Beautiful Dark Twisted Fantasy&lt;/string&gt;
              &lt;key&gt;Genre&lt;/key&gt;&lt;string&gt;Hip Hop&lt;/string&gt;
              &lt;key&gt;Year&lt;/key&gt;&lt;integer&gt;2010&lt;/integer&gt;
          &lt;/dict&gt;
  </code></pre>
  
  <p>(I tried to cut out as much extraneous file info as possible.</p>
  
  <p>My immediate goal is to be able to print out some simply formatted information in the vein of:</p>
  
  <pre><code>Song Name: "Gorgeous" | Artist: "Kanye West | Album: "MBDTF"
  </code></pre>
  
  <p>etc.</p>
  
  <p>I've tried lots of stuff, mostly <a href="https://docs.python.org/2/library/xml.etree.elementtree.html" rel="nofollow"><code>ElementTree</code></a>. Here's one of the codes I tried:</p>
  
  <pre><code>docroot = ElementTree.parse('MyPlaylist.xml').getroot()
  
  for child in docroot:
      for dict in child:
          for a in dict:
              print a.tag, a.attrib
  </code></pre>
  
  <p>That just prints out the baffling</p>
  
  <pre><code>key {}
  dict {}
  key {}
  dict {}
  key {}
  #and so on...
  </code></pre>
  
  <p>I tried further nesting but it returns the same or similar.</p>
  
  <hr>
  
  <p>Reminder: I HAVE looked at the other answers to "how to parse XML with Python," but I really just don't get it. I believe I've exhausted the resources at hand right now and need someone to give me a few pointers. Thanks a ton in advance!</p>