import xml.etree.ElementTree as ET from lxml.html import * from xmljson import badgerfish as bf from pymongo import * xmlDict = {} def RecursionDict(dict_a): if isinstance(dict_a,dict): for x in range(0,len(dict_a)): temp_key = dict_a.keys()[x] temp_…