I need to make a few changes to existing XML files, while preserving the formatting and comments - all but the minor changes that I make should not be affected. I tried xml.etree and lxml.etree without success.
XML is generated by my IDE, but its editor has no functionality, so I need to make a few manual changes. I want to keep the formatting so that the differences are good and not pollute my story.
With a lot of python XML libraries, I thought I would ask here if someone had done something like this.
source share