-
Notifications
You must be signed in to change notification settings - Fork 139
Description
When I enter the command prompt as modelled in the Documentation ----->
(xmlutils.xml2csv
from xmlutils.xml2csv import xml2csv
converter = xml2csv("samples/fruits.xml", "samples/fruits.csv", encoding="utf-8")
converter.convert(tag="item"))
I get the following message. The details of the error are below. Please advise on a solution.
$ python
Python 3.4.3 |Anaconda 2.2.0 (64-bit)| (default, Mar 6 2015, 12:06:10) [MSC v.1
600 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
from xmlutils.xml2csv import xmlcsv
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name 'xmlcsv'
from xmlutils.xml2csv import xml2csv
converter = xml2csv("samples/fruits.xml", "samples/fruits.csv" , encoding =
"utf-8")
coverter.convert(tag = "item")
Traceback (most recent call last):
File "", line 1, in
NameError: name 'coverter' is not defined
converter.convert(tag = "item")
Traceback (most recent call last):
File "", line 1, in
File "c\Python Folder\xmlutils.py\xmlutils\xml2csv.py",
line 56, in convert
event, root = self.context.next()
AttributeError: '_IterParseIterator' object has no attribute 'next'
converter.convert(tag = "item")
Traceback (most recent call last):
File "", line 1, in
File "c\Python Folder\xmlutils.py\xmlutils\xml2csv.py",
line 56, in convert
# event, root = self.context.next()
AttributeError: '_IterParseIterator' object has no attribute 'next'
converter.convert(tag = "item")
Traceback (most recent call last):
File "", line 1, in
File "c\Python Folder\xmlutils.py\xmlutils\xml2csv.py",
line 56, in convert
# event, root = self.context.next()
AttributeError: '_IterParseIterator' object has no attribute 'next'