diff --git a/oletools/ooxml.py b/oletools/ooxml.py index a36c99d..a1ae7be 100644 --- a/oletools/ooxml.py +++ b/oletools/ooxml.py @@ -428,7 +428,7 @@ class XmlParser(object): if self.is_single_xml(): if args: raise BadOOXML(self.filename, 'xml has no subfiles') - with open(self.filename, 'r') as handle: + with open(self.filename, 'rb') as handle: yield None, handle # the subfile=None is needed in iter_xml self.did_iter_all = True else: