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

Re^2: Extracting specific childnodes (xpath whitespace)

by madbee (Acolyte)
on Jul 06, 2013 at 04:13 UTC ( #1042843=note: print w/replies, xml ) Need Help??

in reply to Re: Extracting specific childnodes (xpath whitespace)
in thread Extracting specific childnodes

Hello @Anonymous Monk! Thanks for responding. Tried your approach. It didn't return anything.

@nodes=$dom->findnodes($xpath_Include_LI_Title); print "{@nodes}\n";

the nodes array should contain the values of LI_Title elements, correct?

Thanks again!

Replies are listed 'Best First'.
Re^3: Extracting specific childnodes (xpath whitespace)
by Anonymous Monk on Jul 06, 2013 at 11:57 UTC
    Well, I made a typo of omission . I didn't make the same typo one of the linked nodes. Can you figure out what it is? What is the first step to figure it out?

    Can you explain in english the xpath I provided in untypo'd node?


Re^3: Extracting specific childnodes (play xmllint --shell )
by Anonymous Monk on Jul 06, 2013 at 22:42 UTC

      Dude! Thanks much. Weekend where I am-so didnt get on it until now.In your earlier post, the typo or should I say omission was the full path to LI_Title. Adding that fixed my problem and filled the array.

      Thank you for taking the time to run the code and explain. Really appreciate it..As you can tell, newbie to both Perl and Xpath and learning on the fly.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1042843]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (11)
As of 2018-03-20 15:35 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (254 votes). Check out past polls.