Issue 11366: xml.etree.ElementTree.Element: docs should mention immediate subelement (original) (raw)

Issue11366

Created on 2011-03-02 01:30 by techtonik, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg129845 - (view) Author: anatoly techtonik (techtonik) Date: 2011-03-02 01:30
From xml.etree.ElementTree.Element docs it is not obvious that find() and fundall() functions all return immediate children of current element.
msg129846 - (view) Author: anatoly techtonik (techtonik) Date: 2011-03-02 01:34
See also http://diveintopython3.org/xml.html#xml-find
msg192373 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2013-07-05 23:12
The introduction [1] to etree explains it: Element.findall() finds only elements with a tag which are direct children of the current element. IMHO it's also the obvious outcome for anybody familiar with XML and XPath. [1] http://docs.python.org/3/library/xml.etree.elementtree.html#finding-interesting-elements
History
Date User Action Args
2022-04-11 14:57:13 admin set github: 55575
2013-07-05 23:12:36 christian.heimes set status: open -> closednosy: + christian.heimesmessages: + resolution: works for me
2011-03-02 01:34:21 techtonik set nosy:techtonik, docs@pythonmessages: +
2011-03-02 01:30:30 techtonik set assignee: docs@pythoncomponents: + Documentationnosy: + docs@python
2011-03-02 01:30:22 techtonik create