adplus-dvertising
frame-decoration

Question

Using Xpath, right way to address all 'subject' attribute having word 'compulsory' with in 'school' element is

a.

schoolclass@subject=[.="compulsory"]

b.

/@subject=[.="compulsory"]

c.

/@subject/=[.="compulsory"]

d.

/school/class/@subject=[.="compulsory"]

Posted under Web Technologies

Answer: (d)./school/class/@subject=[.="compulsory"]

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Using Xpath, right way to address all 'subject' attribute having word 'compulsory' with in 'school' element is