diff --git a/django_diu/import_command.py b/django_diu/import_command.py index 81d9a28a3bb0745f5194d43bf2c70defd962822e..42940e4e3465e56e2c64344b7104b35a7890fda8 100644 --- a/django_diu/import_command.py +++ b/django_diu/import_command.py @@ -169,8 +169,8 @@ class XMLImportTask(ImportTask): def open_data_source(self): tree = ET.parse(self.xmlFile) - root = tree.getroot() - self.rows = root.findall(self.xpathSelector) + self.root = tree.getroot() + self.rows = self.root.findall(self.xpathSelector) def count_source(self): self.source_count = len(self.rows)