Commit e4d9dfa7 authored by Neeme Kahusk's avatar Neeme Kahusk

namespace in xpath

parent f30ecc1b
......@@ -15,7 +15,8 @@ import csv
from prepare import read_xml
def get_xpath(root: etree._ElementTree, xpath: str):
return root.xpath(xpath)
namespaces = {'x':'http://www.ilsp.gr/META-XMLSchema'}
return root.xpath(xpath, namespaces=namespaces)
......
Markdown is supported
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