[IronPython] ElementTree in IronPython
Sridevi
srideviaishwariya at gmail.com
Thu Aug 3 12:30:02 CEST 2006
I need to import ElementTree into IronPython
>>> from elementtree import ElementTree
>>> tree = ElementTree.parse('sample.xml')
Traceback (most recent call last):
File , line 0, in <stdin>##16
AttributeError: 'module' object has no attribute 'parse'
The parse() is a funtion in element and it has to be called.
1 .
>>> import sys
>>> sys.path.append("c:\python24\Lib")
Here the elementtree folder is in the python library
2.
I copied the elementtree folder into the pyIron library.
Both the methods give the same error.
:) ... can u help me solve the problem
Thanking you,
Sridevi
More information about the Ironpython-users
mailing list