title: How to parse a large XML file in python?
body: <p>I'm using python version 2.7.* and i need to get youtube playlist. I do it like this:</p>
  
  <pre><code>import urllib
  from xml.dom import minidom
  
  playlist_xml = str(urllib.urlopen('https://gdata.youtube.com/feeds/api/playlists/PLKwibIpsTqDyV6NgiJmO-x0yKfqWjApwp?v=2').read())
  playlist = minidom.parse(playlist_xml)
  </code></pre>
  
  <p>The problem is that i can't parse the result… </p>
  
  <pre><code>Traceback (most recent call last):
    File "/Users/Python/parser.py", line 11, in &lt;module&gt;
      playlist = minidom.parse(playlist_xml)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/dom/minidom.py", line 1914, in parse
      return expatbuilder.parse(file)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/dom/expatbuilder.py", line 922, in parse
      fp = open(file, 'rb')
  IOError: [Errno 63] File name too long: 
  </code></pre>