Wes Gamble wrote:
It's only getting the first one. Do I need to add something to the XPath to pull all of the <tr> elements under the root?
Try :
XPath.each(doc, '//tr etc') do |node| p node end
Maybe .elements only returns contiguous matches.
Wes Gamble wrote:
It's only getting the first one. Do I need to add something to the XPath to pull all of the <tr> elements under the root?
Try :
XPath.each(doc, '//tr etc') do |node| p node end
Maybe .elements only returns contiguous matches.