PyDocs

Nav

Structured Markup Processing Tools

Element.findtext

  • Element.findtext(match, default=None, namespaces=None)
Finds text for the first subelement matching match. match may be a tag name or a path. Returns the text content of the first matching element, or default if no element was found. Note that if the matching element has no text content an empty string is returned. namespaces is an optional mapping from namespace prefix to full name. Pass '' as prefix to move all unprefixed tag names in the expression into the given namespace.
0 Examples
No examples for xml.etree.ElementTree/Element.findtext.
See Also
No see-alsos for xml.etree.ElementTree/Element.findtext
0 Notes
No notes for Element.findtext