tia_kamakshi
asked on
Xpath to find attribute id from album node
Hi Experts,
Please help me in writting xpath query to find id attrbute of the Album node
<Album name="Burj Gallery" sno="1" id="tcm:601-632210">
where attribute "isCurrent" value is "True" from node <Albums> as below
<Albums name="2011 Media Gallery" isCurrent="True">
There are many <Album> node in <Albums> node
so I wanted value of attribute id from Album node where sno="1"
I mean id of first album from Albums node where Albums has attribute isCurrent="True"
Please help me writing xpath
Many Thanks
ImageGallery.xml
Please help me in writting xpath query to find id attrbute of the Album node
<Album name="Burj Gallery" sno="1" id="tcm:601-632210">
where attribute "isCurrent" value is "True" from node <Albums> as below
<Albums name="2011 Media Gallery" isCurrent="True">
There are many <Album> node in <Albums> node
so I wanted value of attribute id from Album node where sno="1"
I mean id of first album from Albums node where Albums has attribute isCurrent="True"
Please help me writing xpath
Many Thanks
ImageGallery.xml
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.