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

    XML::XPath 1.13

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Matt Sergeant | More programs
    Perl Artistic License / FREE
    September 17th, 2009, 17:54 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    XML::XPath description

    A set of modules for parsing and evaluating XPath statements

    XML::XPath is a Perl module that aims to comply exactly to the XPath specification at http://www.w3.org/TR/xpath and yet allow extensions to be added in the form of functions. Modules such as XSLT and XPointer may need to do this as they support functionality beyond XPath.

    SYNOPSIS

     use XML::XPath;
     use XML::XPath::XMLParser;
     
     my $xp = XML::XPath->new(filename => 'test.xhtml');
     
     my $nodeset = $xp->find('/html/body/p'); # find all paragraphs
     
     foreach my $node ($nodeset->get_nodelist) {
     print "FOUND

    ",
     XML::XPath::XMLParser::as_string($node),
     "

    ";
     }



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    XPath statements | Perl module | XPath | statements | Perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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