Next / Previous / Contents / TCC Help System / NM Tech homepage

7.2. ElementTree.findall(): Find matching elements

This method searches the document in an ElementTree and returns a sequence of all the matching elements.

In general, for some ElementTree instance ET, this method will return a sequence of zero or more Elements:

ET.findall ( path )

The syntax of the path argument is the same as for the path argument in Section 7.1, “ElementTree.find(). The only difference is that this method returns a sequence containing all the elements that match path.