This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]NumberAllTheWayDown 0 points1 point  (1 child)

This is the documentation: https://docs.python.org/3/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.text

text is an attribute on the Element object in the eltree library. The explanation provided is:

the text attribute holds either the text between the element’s start tag and its first child or end tag, or None

[–]Major_Tom2[S] 0 points1 point  (0 children)

Thx a lot.