Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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!

Comment on Re^2: Extracting specific childnodes (xpath whitespace)
Download Code
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2015-11-29 05:42 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (747 votes), past polls