Merged xml import to MongoDB functionality