I\'m searching in a HTML document using XPath from lxml in python. How can I get the path to a certain element? Here\'s the example from ruby nokogiri:
page.
root = etree.parse(open('tmp.txt')) for e in root.iter(): print root.getpath(e)