# so that ET preserves your namespaces ET._namespace_map["http://www.w3.org/2001/XMLSchema"] = 'xs'
# open your file explicitly specifying the correct mode f = open('testing.xml', 'w') xml_tree.write(f, encoding='UTF-8') f.close()
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor