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