Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    HTML::DOM 0.0.53

    Download button

    No screenshots available
    Downloads: 97  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Father Chrysostomos | More programs
    Perl Artistic License / FREE
    April 3rd, 2012, 05:30 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    HTML::DOM description

    A Perl implementation of the HTML Document Object Model

    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.0


    StyleSheets, 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')->[0]->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 attribute



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    HTML DOM | Perl module | Document Object Model | Perl | HTML | DOM

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM