0

This is a detailing of my question here. I have the following nodes which I want to select with xpath:

<tr>
    <td class="name" title="43PUS6551" datalabel="43PUS6551">

How should the xpath query be formulated to find all //tr/td nodes where the value of attribute title is equal to the value of attribute datalabel?

Surely totally easy - but I just can not get there and find nothing suitable here or anywhere else on the net.

2

1 Answer 1

2

You just need to use this XPath, with the @ to indicate the attributes...

//tr/td[@title=@datalabel]
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.