From d9d8635090fbe4fab0c86f17f0daa49dcd81d1cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20M=C3=A9nager?= <herve.menager@gmail.com> Date: Wed, 7 Oct 2020 18:22:04 +0200 Subject: [PATCH] use lxml xpath() to allow complex predicates in row selection --- django_diu/import_command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_diu/import_command.py b/django_diu/import_command.py index 2dc255e..ffee7c3 100644 --- a/django_diu/import_command.py +++ b/django_diu/import_command.py @@ -170,7 +170,7 @@ class XMLImportTask(ImportTask): def open_data_source(self): self.root = etree.parse(self.xmlFile) - self.rows = self.root.findall(self.xpathSelector) + self.rows = self.root.xpath(self.xpathSelector) def count_source(self): self.source_count = len(self.rows) -- GitLab