title: Biopython Entrez.read() not working
body: <p>I am using the Biopython package, but I am having trouble with one of its functions. I am following the documentation of the package ( <a href="http://biopython.org/DIST/docs/tutorial/Tutorial.html#htoc111" rel="nofollow">here</a>) to the letter:</p>
  
  <p>This is what I have tried:</p>
  
  <pre><code>from Bio import Entrez
  Entrez.email = "myemail@myuniversity"
  handle = Entrez.einfo(db = "pubmed")
  record = Entrez.read(handle)
  </code></pre>
  
  <p>and I get this error</p>
  
  <pre><code> File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/usr/local/lib/python2.7/dist-packages/Bio/Entrez/__init__.py", line 367, in read
      record = handler.read(handle)
    File "/usr/local/lib/python2.7/dist-packages/Bio/Entrez/Parser.py", line 184, in read
      self.parser.ParseFile(handle)
    File "/usr/local/lib/python2.7/dist-packages/Bio/Entrez/Parser.py", line 300, in startElementHandler
      raise ValidationError(name)
  Bio.Entrez.Parser.ValidationError: Failed to find tag 'DbBuild' in the DTD. To skip all tags that are not represented in the DTD, please call Bio.Entrez.read or Bio.Entrez.parse with validate=False.
  </code></pre>
  
  <p>and so I did what the interpreter recommended and did the following:</p>
  
  <pre><code>record = Entrez.read(handle, validate = False)
  </code></pre>
  
  <p>and this is the error that I got:</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/usr/local/lib/python2.7/dist-packages/Bio/Entrez/__init__.py", line 367, in read
      record = handler.read(handle)
    File "/usr/local/lib/python2.7/dist-packages/Bio/Entrez/Parser.py", line 194, in read
      raise NotXMLError(e)
  Bio.Entrez.Parser.NotXMLError: Failed to parse the XML data (syntax error: line 1, column 0). Please make sure that the input data are in XML format.  
  </code></pre>
  
  <p>Any idea why this is not working? </p>