Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Problem getting fields out of an XPath node list

by ejc1 (Novice)
on Mar 29, 2016 at 14:30 UTC ( [id://1159020]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @nodes = $tree->findnodes('//tr');
    for my $node (@nodes) {
    @text = $node->findvalues('td') or next;
    print Dumper \@text;
    
  2. or download this
    <ul><li>There was registered attempt to establish connection with the 
    +remote host. The connection details are:</li></ul>
    <p><table class="tbl" cellpadding="5" cellspacing="0">
    <tr><td class="cell_1_h">Remote Host</td><td class="cell_2_h">Port Num
    +ber</td></tr>
    <tr><td class="cell_1">192.5.5.241<td class="cell_2">8091</td><tr>
    </table></p>
    
  3. or download this
    my @nodes = $tree->findnodes('//ul');
    for my $node ?(@nodes) {
    ...
        print @Dumper \@text;
        }
    }
    
  4. or download this
    <ul><li>....connection...</li></ul>
    <p><table>
    ...
    .
    .
    </table> </p>
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-25 14:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found