Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

htmltreexpather.pl - xpath helper, creates xpath search strings from html

by Anonymous Monk
on Oct 17, 2010 at 12:29 UTC ( [id://865792]=CUFP: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl --
    use strict;
    ...
    } ## end sub PumpDump
    
    __END__
    
  2. or download this
    
    $ perl htmltreexpather.pl select.html _tag  option
    ...
    /html/body[@bgcolor='red']/form[@action='/foo.cgi' and @name='queryfoo
    +']/select[@name='singlelist']/option[@value='aaa']
    ------------------------------------------------------------------
    ##################################################################
    
  3. or download this
    $ perl htmltreexpather.pl
    Usage: htmltreexpather.pl  file _tag div
    ...
    /html/body[@topmargin='0' and @marginwidth='0' and @leftmargin='0' and
    + @bgcolor='#FFFFFF' and @onload='check();' and @marginheight='0']/div
    +[11]
    ------------------------------------------------------------------
    ##################################################################
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://865792]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-25 07:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found