HTML::DOMA Perl implementation of the HTML Document Object Model | |
Download |
HTML::DOM Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Father Chrysostomos
- Publisher web site:
- http://search.cpan.org/~sprout/
HTML::DOM Tags
HTML::DOM Description
HTML::DOM is a Perl module that implements the HTML Document Object Model by extending the HTML::Tree modules. The HTML::DOM class serves both as an HTML parser and as the document class.The following DOM modules are currently supported: Feature Version (aka level) ------- ------------------- HTML 2.0 Core 2.0 Events 2.0 UIEvents 2.0 MouseEvents 2.0 MutationEvents 2.0 HTMLEvents 2.0 StyleSheets 2.0 CSS 2.0 (partially) CSS2 2.0 Views 2.0StyleSheets, CSS and CSS2 are actually provided by CSS::DOM. This list corresponds to CSS::DOM versions 0.02 to 0.14.SYNOPSIS use HTML::DOM; my $dom_tree = new HTML::DOM; # empty tree $dom_tree->write($source_code); $dom_tree->close; my $other_dom_tree = new HTML::DOM; $other_dom_tree->parse_file($filename); $dom_tree->getElementsByTagName('body')->->appendChild( $dom_tree->createElement('input') ); print $dom_tree->innerHTML, "\n"; my $text = $dom_tree->createTextNode('text'); $text->data; # get attribute $text->data('new value'); # set attributeProduct's homepage
HTML::DOM Related Software