···11+diff --git a/Bio/SeqIO/SeqXmlIO.py b/Bio/SeqIO/SeqXmlIO.py
22+index 8fe75ebb728..6758317d05f 100644
33+--- a/Bio/SeqIO/SeqXmlIO.py
44++++ b/Bio/SeqIO/SeqXmlIO.py
55+@@ -498,11 +498,12 @@ def iterate(self, handle):
66+ if not text:
77+ break
88+ parser.feed(text)
99++ # Closing the parser ensures that all XML data fed into it are processed
1010++ parser.close()
1111+ # We have reached the end of the XML file;
1212+ # send out the remaining records
1313+ yield from records
1414+ records.clear()
1515+- parser.close()
1616+1717+1818+ class SeqXmlWriter(SequenceWriter):