Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: XPATH DOM traverse html/xml (->nodePath)

by ikegami (Patriarch)
on Dec 07, 2009 at 19:16 UTC ( [id://811603]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    for my $node ($root->findnodes('//*')) {
        print($node->nodePath(), ': ', $node->nodeName(), "\n");
    }
    
  2. or download this
    /*: OTA_AirSeatMapRS
    /*/*[1]: Success
    ...
    /*/*[2]/*[3]/*[3]/*[1]/*[3]: Surname
    /*/*[2]/*[3]/*[3]/*[1]/*[4]: NameTitle
    /*/*[2]/*[3]/*[3]/*[2]: TravelerRefNumber
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-26 00:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found