Amaury Forgeot d'Arc added the comment:
The given script yields an item on a "start" event; but the element may not be
fully populated at this point. please read
http://docs.python.org/library/xml.etree.elementtree.html#xml.etree.ElementTree.iterparse
You should use the "end" events instead.
New submission from Valentin Kuznetsov :
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:
.