[New-bugs-announce] [issue13551] pulldom doesn't populate DOM tree

Achim Gaedke report at bugs.python.org
Thu Dec 8 01:41:39 CET 2011

New submission from Achim Gaedke <Achim.Gaedke at physik.tu-darmstadt.de>:


I tried to use the more general xml.dom interface, no longer defaulting to minidom straight away (or using etree).

The DOM tree gained with PullDOM seem to be incomplete.
Here is the output of the program attached.

$ python pulldom_test.py
with pulldom
(<xml.dom.minidom.Document instance at 0xb722962c>, [])
with minidom
(<xml.dom.minidom.Document instance at 0xb72459ac>, [<DOM Text node "u'\n'">, <DOM Element: a at 0xb71cb74c>, <DOM Text node "u'\n'">, <DOM Element: b at 0xb71cb7ac>, <DOM Text node "u'\n'">, <DOM Element: c at 0xb71cb80c>, <DOM Text node "u'\n'">])

I'd expect the same result for both ways of populating the minidom DOM implementation.

Thanks & Cheers, Achim

components: XML
files: pulldom_test.py
messages: 149006
nosy: AchimGaedke
priority: normal
severity: normal
status: open
title: pulldom doesn't populate DOM tree
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file23872/pulldom_test.py

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list