main icon indicating copy to clipboard operation
main copied to clipboard

xml.dom.minidom.parse not working in ironpython 2.7

Open ironpythonbot opened this issue 11 years ago • 3 comments

This seems to be happening with any XML file I try to parse with minidom, I don't think it depends on the file contents at all.

IronPython 2.7.1 (2.7.0.40) on .NET 4.0.30319.239
Type "help", "copyright", "credits" or "license" for more information.

import xml.dom.minidom
dom=xml.dom.minidom.parse('example.xml')
Traceback (most recent call last):
File "", line 1, in
File "C:\Program Files (x86)\IronPython 2.7.1\Lib\xml\dom\minidom.py", line 19
12, in parse
ImportError: cannot import expatbuilder from xml.dom

Work Item Details

Original CodePlex Issue: Issue 32049 Status: Proposed Reason Closed: Unassigned Assigned to: Unassigned Reported on: Jan 8, 2012 at 10:07 AM Reported by: MarioVilas Updated on: Aug 20 at 4:41 PM Updated by: sergiopst

ironpythonbot avatar Dec 09 '14 17:12 ironpythonbot

On 2012-01-10 20:40:44 UTC, slide_o_mix commented:

Currently the pyexpat module is not implemented for IronPython, there is an implementation of pyexpact for FePy that can be found at fepy.sf.net. I am in the process of implementing this module natively in IronPython.

ironpythonbot avatar Dec 09 '14 17:12 ironpythonbot

@slide Did you ever finish that native implementation?

slozier avatar Oct 24 '16 21:10 slozier

No, it was when I didn't have much time. I am planning on looking at it again.

slide avatar Oct 24 '16 21:10 slide