Mechaniza/REXML extract_from_table

Has anyone been successfull using the extract_from_table method of
REXML::Node
class??

This methods is an extension added by Mechanize to REXML as I can see in
the
source code but I am unable to use it because it complains of private
method
called…

here is the code I am trying

require ‘mechanize’

agent = WWW::Mechanize.new
page = agent.get(“http://test.ts”)

cols = page.root.extract_from_table(page.root, [“col1”, “col2”])

and I get

NoMethodError: private method ‘extract_from_table’ called for

</>:REXML::Document

regards.
Horacio

On Thu, Jun 22, 2006 at 05:05:41PM +0900, Horacio S. wrote:

require ‘mechanize’

agent = WWW::Mechanize.new
page = agent.get(“http://test.ts”)

cols = page.root.extract_from_table(page.root, [“col1”, “col2”])

Try this:

cols = extract_from_table(page.root, [“col1”, “col2”])

–Aaron