Commit d1d2d6f4 authored by Arndt Heilmann's avatar Arndt Heilmann
Browse files

Fixed xml output

parent 57bc9634
This diff is collapsed.
......@@ -60,4 +60,7 @@ for dirs,subdirs,files in os.walk('..\\EventFiles\\'):
Mod.attrib[key]= FixedKDdict[filename][i][key]
et = etree.ElementTree(root)
et.write("..\\FixedEventFiles\\"+file, pretty_print=True)
\ No newline at end of file
out=etree.tostring(et,encoding="utf-8", pretty_print=True).decode('utf-8')
with open("..\\FixedEventFiles\\"+file,"w",encoding="utf-8") as outfile:
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