Leser: 16
1
2
3
4
5
6
7
8
9
10
<ul>
<li>1-1 ...</li>
<li>1-2...</li>
<li>
<ul>
<li>2-1...</li>
<li>2-2...</li>
</ul>
<li>1-3...</li>
</ul>
($liste) = $tree->look_down("_tag", "li", );
1 2 3 4 5 6 7 8 9 10 11 12 13 14
($ul) = $tree->look_down("_tag", "ul"); if($ul) { for my $child ($ul->content_list()) { if(ref($child) && $child->tag() eq 'li') { print $child->as_HTML(); print print "\n----------------------------------------------\n"; } } } else {print "kein UL gefunden...\n"}