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

Re: How do i get value of an element if the next elememnt has specific value in XML::LibXML using Xpath? (OT)

by LanX (Chancellor)
on Jul 07, 2013 at 19:20 UTC ( #1043001=note: print w/ replies, xml ) Need Help??


in reply to How do i get value of an element if the next elememnt has specific value in XML::LibXML using Xpath?

Sorry, isn't this rather an XPath than a Perl-question?

edit
From my memory and w/o ever working with this module

you should try experimenting with something like

./book:isbn[@type="epub"]/@isbn

Cheers Rolf

( addicted to the Perl Programming Language)

  • Comment on Re: How do i get value of an element if the next elememnt has specific value in XML::LibXML using Xpath? (OT)
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2016-06-29 20:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (387 votes). Check out past polls.