Next / Previous / Contents / Shipman's homepage

8.2. ElementTree.findall(): Find matching elements

Given some ElementTree instance ET, this method will return a sequence of zero or more Elements that match the pattern specified by the path argument.

ET.findall(path[, namespaces=N])

This method works exactly the same as calling the .findall() method on the document's root element. See Section 9.6, “Element.findall(): Find all matching sub-elements”.