Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    HTML::TreeBuilder::XPath 0.14

    Download button

    No screenshots available
    Downloads: 127  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Michel Rodriguez | More programs
    Perl Artistic License / FREE
    November 28th, 2011, 11:10 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    HTML::TreeBuilder::XPath description

    Add XPath support to HTML::TreeBuilder

    HTML::TreeBuilder::XPath is a Perl module that adds typical XPath methods to HTML::TreeBuilder, to make it easy to query a document.

    SYNOPSIS

     use HTML::TreeBuilder::XPath;
     my $tree= HTML::TreeBuilder::XPath->new;
     $tree->parse_file( "mypage.html");
     my $nb=$tree->findvalue( '/html/body//p[@class="section_title"]/span[@class="nb"]');
     my $id=$tree->findvalue( '/html/body//p[@class="section_title"]/@id');

     my $p= $html->findnodes( '//p[@id="toto"]')->[0];
     my $link_texts= $p->findvalue( './a'); # the texts of all a elements in $p
     $tree->delete; # to avoid memory leaks, if you parse many HTML documents



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    HTML::TreeBuilder XPath | Perl module | Perl | HTML::TreeBuilder | XPath

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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