i'm creating a python script to modify an xml file, let's say I have this kind of tag:
<z:row MGFF_SCRIPT='
If Variabili("UFFICIOPA") = "" Then
elemento = "0000000"
Else
elemento = Variabili("UFFICIOPA")
End If
'/>
I need to access the value of MGFF_SCRIPT attribute, modify it and then insert it in the same position; problem is when I get the value of the attribute (Element.get(key)) and save it in a py string: it has no newline/indentation, it's a single line string, so, when I put the modified value in the attribute and create the new xml, I'll have the attribute MGFF_SCRIPT which its content is written in a single line. Because the content is a script this situation creates a lot of problems. How can i parse the attribute content keeping the newlines/indentations?