Fetching two attributes of a xml file using xpath

Reectegernott

New Member
I have a xml file which has a tag as below:\[code\]<locator xlink:type="locator" xlink:href="https://www.google.co.in/" xlink:title="Google" xlink:show="replace" xlink:actuate="onRequest" xlink:role="website" rank="1"> </locator>\[/code\]There are many locator tag in the xml file with different roles and rank .I am able to get the role of the above tag using \[code\]@*[local-name()='role'\[/code\].Now I need to get the rank attribute based on the role. Is there any way to fetch two attributes and there values together?I am new to Xpath . Please help me with this.
 
Back
Top