I am using Python 2.4 / 2.5, which contains libxm2dom . I can import an HTML document, and I can create a DOM. Is there a way to program "search" program for a given word, and can be able to prepare the XPath function to remove href for the word? For example, this part of HTML is given from the document:
... I would like to return the XPath to get a href link which is a XPath function.
This will select XPATH @heref to be
// one [text () = 'big dog'] / @ href
Comments
Post a Comment