|
@ -182,6 +182,6 @@ if __name__ == "__main__" : |
|
|
tree = ET.ElementTree(root) |
|
|
tree = ET.ElementTree(root) |
|
|
|
|
|
|
|
|
try: |
|
|
try: |
|
|
tree.write(f'{args.output}/adi.xml', encoding='utf-8', xml_declaration=True, pretty_print=True, doctype='<!DOCTYPE ADI PUBLIC "ADI" "ADI.DTD">') |
|
|
|
|
|
|
|
|
tree.write(f'{args.output}/adi.xml', encoding='utf-8', xml_declaration=True, pretty_print=True, doctype='<!DOCTYPE ADI SYSTEM "ADI.DTD">') |
|
|
except Exception as e: |
|
|
except Exception as e: |
|
|
print(str(e)) |
|
|
print(str(e)) |