Mastering Development

Python script to automatically close .xml tags

I have a script that is being used to create log.html and report.html from output.xml if the test run was abruptly closed. The script itself works fine, but I need to implement functionality, where it would automatically fix the output.xml if the tags in it weren’t closed properly. Is there any lib that I could use to automatically fix the tags in .XML file?

Leave a Reply

Your email address will not be published. Required fields are marked *