tags:

views:

119

answers:

2

Given a blog URL, obtain its RSS feed URL. I know this question was asked here, but I'm looking for a framework independent algorithm, however I'd prefer code in C#.

+5  A: 

Look for a

<link rel="alternate" type="..." href="..." />

tag in the page from the given URL.

The type will be application/atom+xml for Atom, application/rss+xml for RSS. The href will be the URL for the feed.

configurator
I think you mean "application/rss+xml" and "application/atom+xml".
Matthew Wilson
Thanks , fixed.
configurator
A: 

No I am not able to get it. Say I Have www.directsaurabh.blog.com a new blog so how can i finf its feed url?

saurabh