Want to import data from XML file to MongoDB collection?
Try Withdata FileToMongo, a XML to MongoDB converter for Windows, MacOS, and Linux, Import XML to MongoDB, Easy and Fast.
- Can run in GUI mode, Step by Step, just a few mouse clicks.
- Can run in Command line, for Scheduled Tasks and Streams.
- Support all MongoDB deployment types: standalone, replica set, sharded cluster, and MongoDB Atlas.
Import XML data To MongoDB
Login to MongoDB -> Choose XML file -> Set MongoDB collection options -> Import XML to MongoDB
Start FileToMongo, connect to MongoDB.
Click “1 File To 1 Collection” at task dialog.
Select the “XML” file type.
1. Open a XML file.
The source XML file like this:
2. Set MongoDB collection options.
3. Preview data will be in MongoDB collection.
4. Import XML data to MongoDB collection.
After importing, you can view imported data in MongoDB collection.
Import XML to MongoDB in command line
Save “XML to MongoDB” session, then you can:
- Convert XML to MongoDB in Windows command line.
- Convert XML to MongoDB in Linux command line.
- Convert XML to MongoDB in macOS command line.
Set scheduled tasks for importing XML to MongoDB
You can schedule and automate this “XML to MongoDB” conversion task by:
- Save session and create .bat (Windows) or .sh (Linux/macOS) file for “XML to MongoDB” conversion.
- Set scheduled task for “XML to MongoDB” conversion.
FAQ
More about Withdata FileToMongo – XML to MongoDB Converter
See Video: Import XML file to MongoDB collection
See also: