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

7.6. ElementTree.xpath(): Evaluate an XPath expression

For an ElementTree instance ET, use this method call to evaluate an XPath expression s, using the tree's root element as the context node.

ET.xpath ( s )

This methods returns the result of the XPath expression. For a general discussion of XPath, see Section 9, “XPath processing”.