Get rel value from URL link

I have an xml file that has two links in it. I need to check to see if the link with the rel next exists if it does get the href value of it. \[code\]<a:link rel="prev" type="application/atom+xml" type="application/atom+xml" href="http://stackoverflow.com/v3.2/en-us/" /><a:link rel="next" type="application/atom+xml" type="application/atom+xml" href="http://stackoverflow.com/v3.2/en-us/" />\[/code\]
 
Back
Top