I have created an xml file using element tree and want to include the checksum of the file in an xml tag. Is this possible?
You could calculate a checksum of the XML before saving, but including it in the file will change the checksum. You end up with a recursive problem where the checksum changes every time you update the file with the new checksum. So no, it's not possible.
Checksum in xml tag python