xml.py
xml.py
import xml.etree.ElementTree as ET
import pymongo
import json
# Replace the connection string with your MongoDB connection string
client =
pymongo.MongoClient("mongodb+srv://palanikalyan:[email protected]
u22a.mongodb.net/?retryWrites=true&w=majority")
xml_dict = element_to_dict(xml_tree.getroot())