def ConvertDictToXml(xmldict):
    """
    Converts a dictionary to an XML ElementTree Element 
    """

    roottag = xmldict.keys()[0]
    root = ElementTree.Element(roottag)
    _ConvertDictToXmlRecurse(root, xmldict[roottag])
    return root

    Converts a dictionary to an XML ElementTree Element 
    
recipes/Python/573463_Converting_XML_Dictionary/recipe-573463.py