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)
| 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. |