I have a string variable (xmlcontents) containing data which I want to convert it to xml I used fromstring function and changed the type from string to etree.ElementTree.Element type but I cant export it as a file can you help with exporting the variable myxml?
from xml.etree.ElementTree import XML, fromstring
myxml = fromstring(xmlcontents)