title: Parsing XML response of bit.ly
body: <p>I was trying out the bit.ly api for shorterning and got it to work. It returns to my script an xml document. I wanted to extract out the tag  but cant seem to parse it properly.</p>
  
  <pre><code>askfor = urllib2.Request(full_url)
  response = urllib2.urlopen(askfor)
  the_page = response.read()
  </code></pre>
  
  <p>So the_page contains the xml document. I tried:</p>
  
  <pre><code>from xml.dom.minidom import parse
  doc = parse(the_page)
  </code></pre>
  
  <p>this causes an error. what am I doing wrong?</p>