PyDocs

Nav

Structured Markup Processing Tools

ElementTree.findtext

  • ElementTree.findtext(match, default=None, namespaces=None)
Find first matching element by tag name or path.

Same as getroot().findtext(path),  which is Element.findtext()

*path* is a string having either an element tag or an XPath,
*namespaces* is an optional mapping from namespace prefix to full
name.

Return the first matching element, or None if no element was found.
0 Examples
No examples for xml.etree.ElementTree/ElementTree.findtext.
See Also
No see-alsos for xml.etree.ElementTree/ElementTree.findtext
0 Notes
No notes for ElementTree.findtext