def xml_to_json(xml_doc):
    doc_el = xml_doc.documentElement
    json_doc = {doc_el.nodeName: xml_node_to_json(doc_el)}

    return json.dumps(json_doc)
The thread function. Calls `self.run()` in loop and if it raises an
dataset/ETHPy150Open jahlborn/appengine-rest-server/src/main/python/rest/__init__.py/xml_to_json--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python3-alpha/python-libs/pyxmpp2/mainloop/threads.py/IOThread._run