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 vkuznet
Recipients vkuznet
Date 2010-09-27.12:25:41
SpamBayes Score 0.00010427354
Marked as misclassified No
Message-id <1285590344.49.0.534410398751.issue9958@psf.upfronthosting.co.za>
In-reply-to
Content
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>
<processed_dataset id='1'>
        <path dataset_path='/aaa/0'/>
</processed_dataset>
....

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.
Thanks,
Valentin
History
Date User Action Args
2010-09-27 12:25:44vkuznetsetrecipients: + vkuznet
2010-09-27 12:25:44vkuznetsetmessageid: <1285590344.49.0.534410398751.issue9958@psf.upfronthosting.co.za>
2010-09-27 12:25:42vkuznetlinkissue9958 messages
2010-09-27 12:25:41vkuznetcreate