https://github.com/samirpaulb/xml2csv
Converts XML documents to a CSV file
https://github.com/samirpaulb/xml2csv
csv pandas python python3 xml xml-csv xml-to-csv xml2csv
Last synced: 8 months ago
JSON representation
Converts XML documents to a CSV file
- Host: GitHub
- URL: https://github.com/samirpaulb/xml2csv
- Owner: SamirPaulb
- Created: 2022-10-02T14:20:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-02T14:31:17.000Z (over 3 years ago)
- Last Synced: 2025-05-12T23:44:01.381Z (8 months ago)
- Topics: csv, pandas, python, python3, xml, xml-csv, xml-to-csv, xml2csv
- Language: Python
- Homepage:
- Size: 124 KB
- Stars: 10
- Watchers: 3
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# xml2csv
Converts XML files into csv file, this script is capable of converting extremely nested xml files.
This script utilize power of multiprocessing to convert huge data in less time.
## Requirements
Install required libraries using following command before running script.
`pip install -r requirements.txt`
## Usage
### Convert single xml to csv file
`python xml2csv.py -f ./xml-samples/1.xml -csv out.csv`
### Convert multiple xmls to csv file
`python xml2csv.py -f ./xml-samples/2.xml ./xml-samples/1.xml -csv out.csv`
### Convert bulk xmls to csv
`python xml2csv.py -b ./xml-samples/ -csv out.csv`
###### Arguments
```
-f Input XML document's filename.
-b Path to the folder containing xml files.
-csv Name of output csv file.
```