Returns an iterator over the elements of an XML file.
The iterator doesn’t ever build a tree, so it is much more memory and time efficient than the alternative in cElementTree.
Parameters: | fd : readable file-like object or read function |
---|---|
Returns: | parts : iterator
|