This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Myrosia.Dzikovska
Recipients Myrosia.Dzikovska, amaury.forgeotdarc, docs@python, vojta.rylko
Date 2011-07-22.11:37:23
SpamBayes Score 2.0100313e-07
Marked as misclassified No
Message-id <1311334644.39.0.965510017606.issue10026@psf.upfronthosting.co.za>
In-reply-to
Content
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>
    main(sys.argv[1:])
  File "/group/project/onrbee/data/beetle2-eval-09/annotation_tools/logTools/add_start_times.py", line 130, in main
    events.expandNode(node)
  File "/usr/lib/python2.6/site-packages/_xmlplus/dom/pulldom.py", line 248, in expandNode
    parents[-1].appendChild(cur_node)
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"):
             events.expandNode(node)
History
Date User Action Args
2011-07-22 11:37:24Myrosia.Dzikovskasetrecipients: + Myrosia.Dzikovska, amaury.forgeotdarc, docs@python, vojta.rylko
2011-07-22 11:37:24Myrosia.Dzikovskasetmessageid: <1311334644.39.0.965510017606.issue10026@psf.upfronthosting.co.za>
2011-07-22 11:37:23Myrosia.Dzikovskalinkissue10026 messages
2011-07-22 11:37:23Myrosia.Dzikovskacreate