Avatar of Miguel Oz
Miguel Oz
Flag for Australia asked on

Get book nodes where node and parent node contains an attribute

Please provide xpath expresion for the problem below:
 
From the sample xml shown in the link below.
http://stackoverflow.com/questions/1457638/xpath-get-nodes-where-child-node-contains-an-attribute

The required xpath expression is : all book titles whose language="en" (English attribute in node)  and category="WEB" (parent)

Solution should look like:
 //book/title[@lang='en' and <your expression goes here>]

The expected result is:
  <title lang="en">XQuery Kick Start</title>
  <title lang="en">Learning XML</title>

Thank you
XMLASP.NETC#

Avatar of undefined
Last Comment
Miguel Oz

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
kaufmed

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Ironhoofs

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Miguel Oz

ASKER
Thanks, both answers are correct.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes