Solved

What is the proper tag to download an RSS Feed for the XmlReader in .NET C#?

Posted on 2011-02-18
1
401 Views
Last Modified: 2012-05-11
Hello,

I have the following code and I am getting the following error:

"The URI Prefix is not supported"

So, what tag do I use to download an RSS Feed and later Parse it??

Thanks!!!!!!!!
XmlReader reader = XmlReader.Create("feed://feeds.feedburner.com/TriplePundit");
System.ServiceModel.Syndication.SyndicationFeed RSSAtomfeed = System.ServiceModel.Syndication.SyndicationFeed.Load(reader);

Open in new window

0
Comment
Question by:stracqan
1 Comment
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 400 total points
Comment Utility
"feed:" isn't a valid protocol. Feedburner serves its feeds sing http, so you need to change your first line to:
XmlReader reader = XmlReader.Create("http://feeds.feedburner.com/TriplePundit")

Open in new window

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now