From: Georg Brandl Date: Sun, 6 Oct 2013 07:23:03 +0000 (+0200) Subject: Fix: Element.text is an attribute, not a method (report by Cameron Laird on docs@) X-Git-Tag: v2.7.6rc1~105 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e7f16e77ee0b5581dc903a77ce43703b4cdf11e;p=python Fix: Element.text is an attribute, not a method (report by Cameron Laird on docs@) --- diff --git a/Doc/library/xml.etree.elementtree.rst b/Doc/library/xml.etree.elementtree.rst index fee56ff3fe..24e50846c8 100644 --- a/Doc/library/xml.etree.elementtree.rst +++ b/Doc/library/xml.etree.elementtree.rst @@ -158,7 +158,7 @@ the sub-tree below it (its children, their children, and so on). For example, :meth:`Element.findall` finds only elements with a tag which are direct children of the current element. :meth:`Element.find` finds the *first* child -with a particular tag, and :meth:`Element.text` accesses the element's text +with a particular tag, and :attr:`Element.text` accesses the element's text content. :meth:`Element.get` accesses the element's attributes:: >>> for country in root.findall('country'):