Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 perusing the Monastery: (6)
As of 2014-07-11 23:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (236 votes), past polls