Thread Passendes End Tag gesucht (15 answers)
Opened by J-jayz-Z at 2005-11-29 23:22

esskar
 2005-11-30 01:46
#60579 #60579
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
HTML::Parser oder HTML::TreeBuilder

Bsp:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use HTML::TreeBuilder;
my $tree = HTML::TreeBuilder->new;
$tree->parse("<div id='cont'>eins<div>zwei<div>drei<div>vier</div></div></div></div>");
$tree->dump;
^Z
<html> @0 (IMPLICIT)
<head> @0.0 (IMPLICIT)
<body> @0.1 (IMPLICIT)
<div id="cont"> @0.1.0
"eins"
<div> @0.1.0.1
"zwei"
<div> @0.1.0.1.1
"drei"
<div> @0.1.0.1.1.1
"vier"
\n\n

<!--EDIT|esskar|1133308044-->

View full thread Passendes End Tag gesucht