import plistlib


def payload_to_xml(payload):
    """Quick and dirty conversion of dictionaries to XML with plistlib. Returns a converted dictionary with the header and footer removed."""
    unprocessed = plistlib.dumps(payload).decode("utf-8")
    header_removed = unprocessed.split("\n", 3)[3]
    return header_removed.rsplit("\n", 2)[0]