Below are the steps I am following:
Reading the xml file as dictionary
import xmltodict with open("example.xml") as sxml: data = xmltodict.parse(sxml.read())
Changing the value
data["key"]["key1"] = "some value"
I want to save the changes in example.xml file or I want to create a new file and save the changes.
How can I do it?