def parse_data_validation(self, element): from openpyxl.worksheet.datavalidation import parser for tag in safe_iterator(element, "{%s}dataValidation" % SHEET_MAIN_NS): dv = parser(tag) self.ws._data_validations.append(dv)