Skip to content

Python scripts for processing XML documents and converting to CSV. Also works on nested xml files.

Notifications You must be signed in to change notification settings

waheed0332/xml2csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Python scripts for processing XML documents and converting to CSV. Also works on nested xml files.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages