HTML::Element

HTML::Element is a Perl class for objects that represent HTML elements.
Download

HTML::Element Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Pete Krawczyk
  • Publisher web site:
  • http://search.cpan.org/~petek/HTML-Tree-3.23/lib/HTML/Element.pm

HTML::Element Tags


HTML::Element Description

HTML::Element is a Perl class for objects that represent HTML elements. HTML::Element is a Perl class for objects that represent HTML elements.SYNOPSIS use HTML::Element; $a = HTML::Element->new('a', href => 'http://www.perl.com/'); $a->push_content("The Perl Homepage"); $tag = $a->tag; print "$tag starts out as:", $a->starttag, "n"; print "$tag ends as:", $a->endtag, "n"; print "$tag's href attribute is: ", $a->attr('href'), "n"; $links_r = $a->extract_links(); print "Hey, I found ", scalar(@$links_r), " links.n"; print "And that, as HTML, is: ", $a->as_HTML, "n"; $a = $a->delete;Objects of the HTML::Element class can be used to represent elements of HTML document trees. These objects have attributes, notably attributes that designates each element's parent and content. The content is an array of text segments and other HTML::Element objects. A tree with HTML::Element objects as nodes can represent the syntax tree for a HTML document. Requirements: · Perl


HTML::Element Related Software