[Biopython] Bio.Entrez/Medline DTD problems - missing DTD nlmmedlinecitationset_100301.dtd

Peter biopython at maubp.freeserve.co.uk
Thu Jul 8 11:53:30 UTC 2010


On Thu, Jul 8, 2010 at 12:28 PM, Guy Eakin <guyeakin at gmail.com> wrote:
> Peter,
>
> Many thanks.
>
> this is a query statement that generated the
> nlmmedlinecitationset_100301.dtd error: Entrez.esearch(db="pubmed",
>                        term= ('glaucom*'),
>                        retmax=2, usehistory="y",
>                        reldate=7, datetype="edat")
>
>
> fetch_handle = Entrez.efetch(db="pubmed", retmode="xml",rettype='medline',
>                             webenv=webenv, query_key=query_key)
>

Great. A more complete version is:

from Bio import Entrez
Entrez.email = "A.N.Other at example.com"

s = Entrez.read(Entrez.esearch(db="pubmed",term=
('glaucom*'),retmax=2, usehistory="y",reldate=7, datetype="edat"))

r = Entrez.read(Entrez.efetch(db="pubmed",
retmode="xml",rettype='medline', webenv=s["WebEnv"],
query_key=s["QueryKey"]))


>
> You will also want to add pubmed_100301.dtd to your repository. ...
>

Yes, we needed the new pubmed_100301.dtd and also bookdoc_100301.dtd

It looks like the NCBI did some updates recently - hopefully they'll update that
webpage soon and we can see if we need to add anymore (other than finding
out from error messages).

Thanks for the report, and please let us know if you find any more missing DTD
files.

Peter




More information about the Biopython mailing list