Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def read_file_content(file):
|
|
55 |
elif file.type == "application/xml" or file.type == "text/xml":
|
56 |
tree = ET.parse(file)
|
57 |
root = tree.getroot()
|
58 |
-
return
|
59 |
elif file.type == "text/plain":
|
60 |
return file.getvalue().decode()
|
61 |
else:
|
|
|
55 |
elif file.type == "application/xml" or file.type == "text/xml":
|
56 |
tree = ET.parse(file)
|
57 |
root = tree.getroot()
|
58 |
+
return ET.tostring(root, encoding='unicode')
|
59 |
elif file.type == "text/plain":
|
60 |
return file.getvalue().decode()
|
61 |
else:
|