I have an XML snippet as in the following:
<music_songs> <song> <title>(I Just) Died In Your Arms</title> <category>Rock</category> <album>80 Popular Hits</album> <artist>Cutting Crew</artist> <date added="03-24-2009"/> </song> </music_songs>
Thiis is one of the songs out of 5 categories I have, and currently I use XPath expression as in the following: /music_songs/song[category='Rock' as an example to find all the songs in the Rock category.
I need to also be able to pull the position index of the song elements that I pull from the above expression, so I can use that number to determine a pagination control I am creating. How can I do that?
Thanks for your help.