Fix #1
Error Origin
there is multiple types of xml that can be send back via the fetch
function.
type1:
<PubmedArticleSet>
<PubmedArticle>
...
type2:
<PubmedArticleSet>\n
<PubmedBookArticle>\n
...
As you can see the type2 isn't formatted the same way as type1, which caused error since we used force
on the parser.
Fix
tagIgnoreAttrs
switched to manyTagsUntil
so type2 doesn't create an error anymore only an empty result.