biopython v1.71.0 Bio.Entrez.Parser.DataHandler

Initialize the class.

Link to this section Summary

Functions

Callback function is called for each element declaration in a DTD

The purpose of this function is to load the DTD locally, instead of downloading it from the URL specified in the XML. Using the local DTD results in much faster parsing. If the DTD is not found locally, we try to download it. If new DTDs become available from NCBI, putting them in Bio/Entrez/DTDs will allow the parser to see them

Set up the parser and let it parse the XML results

Link to this section Functions

Callback function is called for each element declaration in a DTD.

This is used for each element declaration in a DTD like::

<!ELEMENT       name          (...)>

The purpose of this function is to determine whether this element should be regarded as a string, integer, list, dictionary, structure, or error.

Link to this function externalEntityRefHandler()

The purpose of this function is to load the DTD locally, instead of downloading it from the URL specified in the XML. Using the local DTD results in much faster parsing. If the DTD is not found locally, we try to download it. If new DTDs become available from NCBI, putting them in Bio/Entrez/DTDs will allow the parser to see them.

Set up the parser and let it parse the XML results