Lines Matching refs:path
283 def find(self, path, namespaces=None):
284 """Find first matching element by tag name or path.
286 *path* is a string having either an element tag or an XPath,
292 return ElementPath.find(self, path, namespaces)
294 def findtext(self, path, default=None, namespaces=None):
295 """Find text for first matching element by tag name or path.
297 *path* is a string having either an element tag or an XPath,
306 return ElementPath.findtext(self, path, default, namespaces)
308 def findall(self, path, namespaces=None):
309 """Find all matching subelements by tag name or path.
311 *path* is a string having either an element tag or an XPath,
317 return ElementPath.findall(self, path, namespaces)
319 def iterfind(self, path, namespaces=None):
320 """Find all matching subelements by tag name or path.
322 *path* is a string having either an element tag or an XPath,
328 return ElementPath.iterfind(self, path, namespaces)
605 def find(self, path, namespaces=None):
606 """Find first matching element by tag name or path.
608 Same as getroot().find(path), which is Element.find()
610 *path* is a string having either an element tag or an XPath,
617 if path[:1] == "/":
618 path = "." + path
622 "behaviour, change it to %r" % path,
625 return self._root.find(path, namespaces)
627 def findtext(self, path, default=None, namespaces=None):
628 """Find first matching element by tag name or path.
630 Same as getroot().findtext(path), which is Element.findtext()
632 *path* is a string having either an element tag or an XPath,
639 if path[:1] == "/":
640 path = "." + path
644 "behaviour, change it to %r" % path,
647 return self._root.findtext(path, default, namespaces)
649 def findall(self, path, namespaces=None):
650 """Find all matching subelements by tag name or path.
652 Same as getroot().findall(path), which is Element.findall().
654 *path* is a string having either an element tag or an XPath,
661 if path[:1] == "/":
662 path = "." + path
666 "behaviour, change it to %r" % path,
669 return self._root.findall(path, namespaces)
671 def iterfind(self, path, namespaces=None):
672 """Find all matching subelements by tag name or path.
674 Same as getroot().iterfind(path), which is element.iterfind()
676 *path* is a string having either an element tag or an XPath,
683 if path[:1] == "/":
684 path = "." + path
688 "behaviour, change it to %r" % path,
691 return self._root.iterfind(path, namespaces)
1742 Either *xml_data* (an XML string) or *from_file* (a file path or