[issue35531] xml.etree.ElementTree Elment.find bug, fails to find tag

Justin report at bugs.python.org
Tue Dec 18 21:21:36 EST 2018


Justin <justin.a.black at gmail.com> added the comment:

Issue was user error. I though that find did a full search of the tree when it only searches children.
Solution is:

ele = xml.find('.//faultstring')

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35531>
_______________________________________


More information about the Python-bugs-list mailing list