The added pubmed21n1298.xml file works for parse_medline_xml() but not on parse_pubmed_xml(). This PR came out of this issue https://github.com/titipata/pubmed_parser/issues/95#issuecomment-860883115 It looks like the XML format changed. tree.find(".//article-meta") is returning NoneType and breaking following code.
The added
pubmed21n1298.xml
file works forparse_medline_xml()
but not onparse_pubmed_xml()
. This PR came out of this issue https://github.com/titipata/pubmed_parser/issues/95#issuecomment-860883115 It looks like the XML format changed.tree.find(".//article-meta")
is returningNoneType
and breaking following code.