简体   繁体   中英

Rss20FeedFormatter and pre-RSS2 formats

I have some C# code which uses the Rss20FeedFormatter class to produce RSS output on a web page. Our client wants the feed I am writing to be compatible to an existing feed they use. This uses an old version of RSS:

<rss version="0.91fn">

However the Rss20FeedFormatter seems to be limited to

<rss version="2.0">

I don't want any RSS2 features, but there doesn't seem to be a SyndicationFeed which allows me to produce earlier versions of RSS.

Is there another class or method I should be using?

I have figured it out myself. You have to write your own class which inherits from SyndicationFeedFormatter and implements all the methods. I didn't bother with the read methods just the write methods, as that's all I was doing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM