Skip to content

Convert XML to CSV - I don't think it needs more explanation than that. Apart from that you have to write the XSLT, so it only helps a little bit.

License

Notifications You must be signed in to change notification settings

rabramley/XmlToCsv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XmlToCsv

Convert XML to CSV - I don't think it needs more explanation than that. Apart from that you have to write the XSLT, so it only helps a little bit.

Installation

To download this code run the command:

git clone https://github.com/rabramley/XmlToCsv.git

Install required XML libraries

sudo apt-get install libxml2-dev libxslt-dev python-dev

Then cd into the project directory and create a virtual environment for it. Don't worry, if you name it the same as me git will ignore it.

virtualenv venv

Activate the virtual environment

. venv/bin/activate

Then install lxml

pip install lxml

The project contains a data folder that's contents are never checked in. This is to protect the potentially sensitive data from accidentally being uploaded to the internet.

Running

python xmlToCsv.py data/example.XML -t transform/example.xslt > data/example.csv

About

Convert XML to CSV - I don't think it needs more explanation than that. Apart from that you have to write the XSLT, so it only helps a little bit.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published