MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / find

Method find

tools/python-3.11.9-amd64/Lib/xml/etree/ElementTree.py:284–293  ·  view source on GitHub ↗

Find first matching element by tag name or path. *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.

(self, path, namespaces=None)

Source from the content-addressed store, hash-verified

282 self._children.remove(subelement)
283
284 def find(self, path, namespaces=None):
285 """Find first matching element by tag name or path.
286
287 *path* is a string having either an element tag or an XPath,
288 *namespaces* is an optional mapping from namespace prefix to full name.
289
290 Return the first matching element, or None if no element was found.
291
292 """
293 return ElementPath.find(self, path, namespaces)
294
295 def findtext(self, path, default=None, namespaces=None):
296 """Find text for first matching element by tag name or path.

Callers 3

writexmlMethod · 0.45
selectFunction · 0.45
findMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected