Skip to content
Snippets Groups Projects
Commit d070928f authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

make document root available in XMLImportTask

parent 7989d442
No related branches found
No related tags found
No related merge requests found
Pipeline #39049 passed
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment