Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot convert XML to CSV #45

Closed
alihammadbaig opened this issue Sep 5, 2018 · 2 comments
Closed

Cannot convert XML to CSV #45

alihammadbaig opened this issue Sep 5, 2018 · 2 comments

Comments

@alihammadbaig
Copy link

alihammadbaig commented Sep 5, 2018

Tried converting simple XML (below) but get nothing in the output file. Output file is created though. I am using Python v2.7

<?xml version="1.0" encoding="utf-8"?>
<rows>
  <row Id="2" PostId="35314"/> 
</rows>

Tried command line tool which didn't work
xml2csv --input "subset.xml" --output "subset.csv" --tag "row"

Error

image

Tried it through the code which didn't work either

from xmlutils.xml2csv import xml2csv
converter = xml2csv("subset.xml", "subset.csv", encoding="utf-8")
converter.convert(tag="row")
@manel00
Copy link

manel00 commented Feb 20, 2020

Hi, me too, it doesn't work, creates empty CSV

@knadh
Copy link
Owner

knadh commented Feb 24, 2020

Sorry. This library is no longer maintained I'm afraid.

@knadh knadh closed this as completed Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants