I am trying to write a simple XML file using python, but am having trouble getting an unescaped ampersand in the output. My current code is below, and I am expecting the output to be "&otherFile;" not "&otherFile"
root=tree.getroot()
print(root.tag)
root.text="\n&otherFile;\n"
tree.write("MyElements.xml")