in reply to Re^3: extracting data from HTML
in thread extracting data from HTML
forgive me my brethern but it looks I did bite off more then I could chew and again I endup with bits I can not put together
the example of
my $nodes = $xml->findnodes('//*[local-name()="title"]')
wasn't to much to understand, altohug quite surprised with the construction of the xpath-expression; I would had expected something more easy like
my $nodes = $xml->findnodes('//html/head/title]')
But ofcourse, it wouldn't be me if I would get it wrong again
With HTML::TreeBuilder::XPath it did work, even things like giving me all the table rows from a specific path and dump as text with
my @stuff = $tree->findvalues( '//td[@class="BTrow"]/table/tr/td/table/tr'); print Dumper(\@stuff);
It looks to me I'm missing some bit
please toby, and others as well, what am I doing wrong here, it can't be the xpath syntax, is it?
thank you all for your enlighting words and inspiration
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: extracting data from HTML
by tobyink (Canon) on Jun 05, 2012 at 21:59 UTC | |
by Jurassic Monk (Acolyte) on Jun 06, 2012 at 15:37 UTC |