xml.etree.ElementTree.Element.findtext()

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.

doc_python
2016-10-07 17:47:58
Comments
Leave a Comment

Please login to continue.