P
Peter Szinek
If you are keen on XPaths, why not:Chris said:Turns out I actually ended up abandonning HTree and the rest. I used
net/http in order to fetch the page and then took the table of the page
that I was interested in examining and converted that using rexml. I
have now been able to grab the values that I wanted using XPath
table = XPath.first(doc, "//table[@class='index' && @width='100%']")
then use 'table' instead of 'converted_data'...
or even
module_name = XPath.first(doc, "//table[@class='index' &&
@width='100%']//td[@class='data']/a/]")
etc.
(Untested since I don't have your doc, but it should +- work)
Cheers,
Peter
__
http://www.rubyrailways.com