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
Pipeline #85730 passed with stage
in 24 seconds
......@@ -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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment