Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by ikegami (Pope)
on Dec 07, 2009 at 19:16 UTC ( #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
Node Status?
node history
Node Type: note [id://811603]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2014-07-26 18:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (178 votes), past polls