I have an XML file which I want to modify and save to futher use. I only want to change text of some elements, but when I do, it also deletes all the line breaks in element's attributes:
<smth.xml
attr1="name1"
attr2="name2"
smth="21315423"
Debug="false" >
becomes
<smth.xml attr1="name1" attr2="name2" smth="21315423" Debug="false">
I am currently using lxml lib with parser = etree.XMLParser(encoding='utf-8')