Thread HTML::Parser (4 answers)
Opened by sid burn at 2007-05-11 17:42

ptk
 2007-05-15 03:30
#76650 #76650
User since
2003-11-28
3645 Artikel
ModeratorIn
[default_avatar]
Versuch mal CPAN:HTML::TreeBuilder::XPath.
Beispiel:
Code: (dl )
1
2
3
4
5
6
7
8
use HTML::TreeBuilder::XPath;
my $x = HTML::TreeBuilder::XPath->new;
$x->parse(<<EOF);
<html><head><title>Der Titel</title></head>
<body>Jetzt fängt der Body an</body>
</html>
EOF
warn $x->findvalue('//body');

View full thread HTML::Parser