|
@@ -48,8 +48,8 @@ def parse_csv_to_xml(filepath: str):
|
|
|
for element in line:
|
|
|
element = element.replace(" ", "")
|
|
|
key, value = element.split(":")
|
|
|
- packet.attrib[key] = value
|
|
|
- packet.attrib["LineNumber"] = lineno
|
|
|
+ packet.attrib[key] = str(value)
|
|
|
+ packet.attrib["LineNumber"] = str(lineno)
|
|
|
|
|
|
# writing the ElementTree into the .xml file
|
|
|
tree = ElementTree.ElementTree(root)
|