hi.
using python 2.4/2.5, with libxm2dom.
trying to get my haed around a question/issue that I'm considering.
I have a doc I import the doc, and can build the DOM (libxml2dom)
I'm trying to figure out if there's a way to programatically "search" for a given term, and be able to craft the XPath function to extract the href
for the term.
ie, If I have a doc, and it has a chunk of html like..
.
.
.
<a href="dog">bigdog</a>
.
.
.
I'd like to be able to say, have a XPath function that would search/find bigdog
, and return the XPath to get the href link.
i can easily manually examine/analyze the content of the page and create the XPath to get the href/link... but I'm wondering how the heck one would go about the other way.. and if it's possible.
thanks