Commit 99e2a13c authored by Neeme Kahusk's avatar Neeme Kahusk

xpath text

parent e4d9dfa7
......@@ -16,7 +16,10 @@ from prepare import read_xml
def get_xpath(root: etree._ElementTree, xpath: str):
namespaces = {'x':'http://www.ilsp.gr/META-XMLSchema'}
return root.xpath(xpath, namespaces=namespaces)
elements = root.xpath(xpath, namespaces=namespaces)
texts = [x.text for x in elements]
return ', '.join(texts)
......
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