python XPATH question - mechanize/libxml2dom

bruce bedouglas at
Tue Sep 2 07:31:53 CEST 2008


i can use an xpath query to create a node from an html/dom representation.
however, if i have a node, is there a way to generate an xpath query from
the node.

in testing with firefox/dom inspector, i can use "ancestor::*", but i can't
determine where/how to implement this using mechanize/libxml2dom


More information about the Python-list mailing list