[docs] [issue10026] xml.dom.pulldom strange behavior

Myrosia Dzikovska report at bugs.python.org
Fri Jul 22 13:37:24 CEST 2011

Myrosia Dzikovska <myrosia at gmail.com> added the comment:

I have the same problem, and I tried the solution suggested in here, namely expanding the node at END_ELEMENT. It does not work, raising the following exception:

Traceback (most recent call last):
  File "/group/project/onrbee/data/beetle2-eval-09/annotation_tools/logTools/add_start_times.py", line 163, in <module>
  File "/group/project/onrbee/data/beetle2-eval-09/annotation_tools/logTools/add_start_times.py", line 130, in main
  File "/usr/lib/python2.6/site-packages/_xmlplus/dom/pulldom.py", line 248, in expandNode
IndexError: list index out of range

The code fragment was:

  events = xml.dom.pulldom.parse( outName )
    for (event,node) in events:
        if (event == xml.dom.pulldom.END_ELEMENT) and (node.tagName == "message"):

nosy: +Myrosia.Dzikovska

Python tracker <report at bugs.python.org>

More information about the docs mailing list