Skip to content
Snippets Groups Projects
Commit d9d86350 authored by Hervé Ménager's avatar Hervé Ménager
Browse files

use lxml xpath() to allow complex predicates in row selection

parent bcaa85a1
No related branches found
No related tags found
No related merge requests found
Pipeline #85730 passed
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment