Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Help with xpath and TreeBuilder

by Anonymous Monk
on Jun 29, 2012 at 12:09 UTC ( #979111=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @xpaths = qw{
    /html/body/p/a
    ...
    };
    my $allXpaths = join ' | ', @xpaths;
    my @values = $tree->findvalues;
    
  2. or download this
    /html/body/p[
    position()=1
    ...
    or  position()=3
    or  position()=66
    ]/a
    
  3. or download this
    /html/body/p[
    (
    ...
      )
    )
    ]/a
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://979111]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-08-30 04:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (291 votes), past polls