python XPATH question - mechanize/libxml2dom

bruce bedouglas at earthlink.net
Tue Sep 2 01:31:53 EDT 2008


hi...

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

thanks




More information about the Python-list mailing list