Commit 142792d8 authored by Neeme Kahusk's avatar Neeme Kahusk

loeb ka kausta

parent 526bc360
0.3.0
\ No newline at end of file
0.3.1
\ No newline at end of file
......@@ -52,9 +52,15 @@ def main():
print(etree.tounicode(i, pretty_print=True))
else:
r = read_xml(args.infile)
print(args.xpath)
print(get_xpath(r, args.xpath))
p = Path(args.infile)
if p.is_dir():
filelist = [x for x in p.iterdir()]
for i in filelist:
print(read_xml(str(i)))
else:
r = read_xml(args.infile)
print(args.xpath)
print(get_xpath(r, args.xpath))
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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