def json_to_xml(json_doc):
    json_node = json.load(json_doc)

    impl = minidom.getDOMImplementation()
    doc_el_name = json_node.keys()[0]
    xml_doc = impl.createDocument(None, doc_el_name, None)
    json_node_to_xml(xml_doc.documentElement, json_node[doc_el_name])
    return xml_doc
Returns an xml document generated from the given json doc.
dataset/ETHPy150Open jahlborn/appengine-rest-server/src/main/python/rest/__init__.py/json_to_xml