Forum Moderators: open
However, each item in the RSS feed contains two URLs, e.g.
<link rel='alternate' type='text/html' href='http://link1'></link>
<link rel='self' type='application/atom+xml' href='http://link2'></link>
The ASP code is not returning any child text for the <link> node.
Can anyone shed any light how I can identify which link I wish to use, and display it accordingly?
Thanks in advance,
Chris
for each child in RSSItem.childNodes
if lcase(child.nodeName)="title" then response.write child.text
if lcase(child.nodeName)="link" then begin
for each at in child.attributes
if at.name="rel" then response.write at.value
next
end
if lcase(child.nodeName)="content" then response.write child.text
next
Your last snippet of code was sooo close, and it just needed a little tweaking to get the results I needed.
Here was the final code:
for each at in child.attributes
if at.name="href" then response.write at.text &"<br>"
next
Thank you so much.
Chris