[issue9958] (c)elementTree missing children

Valentin Kuznetsov report at bugs.python.org
Mon Sep 27 14:25:44 CEST 2010

New submission from Valentin Kuznetsov <vkuznet at gmail.com>:

Hi, I found that parsing XML file with identical structure leads to missing children item at some point. In my test case which I attach it happens at id=183. Basically I have XML with bunch of elements of the following structure:

<processed_dataset id='0'>
        <path dataset_path='/aaa/0'/>
<processed_dataset id='1'>
        <path dataset_path='/aaa/0'/>

when I parse them recursively, all, except the one with id=183, are parsed identically. The one with id=183 does not contain children. I tried the code with python 2.6 and python 2.7 on Mac and Linux. Bug exists in both version of ElementTree and cElementTree. Code and testbed XML are attached. Please untar and run as python test_bug.py.

files: em_bug.tar
messages: 117440
nosy: vkuznet
priority: normal
severity: normal
status: open
title: (c)elementTree missing children
type: behavior
versions: Python 2.6, Python 2.7
Added file: http://bugs.python.org/file19028/em_bug.tar

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list