Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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
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.

      Regards,Madbee

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2014-07-22 21:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (129 votes), past polls