![]() One of the data that is stored is filename which specifies the filename that contains the HTML to be fetched from blob container. The json contains a list of posts as json objects and each item contains data corresponding to that post. ![]() It's a very rudimentary content management system. ToString () įor my blog all the metadata is stored in a main.json file which is fetched from the blob storage. Rss20FeedFormatter rssFormatter = new Rss20FeedFormatter ( feed, false ) rssFormatter. As it can be converted to an older RSS 2.0 format or the newer a10 format. ![]() Create ( sw ) // The second false specifies the format for feed. StringWriter sw = new StringWriter () XmlWriter rssWriter = XmlWriter. Then we add authors, here we can specify more than one authors. Like the title, description and url of the blog. You'll need to add the library module through NuGet.įirst we create a syndication feed object and add preliminary information to it. The top level class is SyndicationFeed which can be serialized to not only the latest RSS 2.0 standard but also to Atom 1.0 feed so you can choose whichever you want. The main library that implements helper classes for RSS feed in. This would be my first time implementing XML based schema for data. The last reason is purely because I wanted to learn more about RSS and XML in general. I can certainly see why a lot of people do like it, which forms the second reason why I thought of going ahead with it. I actually went ahead and tried out Feedly to get an idea of how modern RSS readers work. So when I thought of adding RSS to my website it was actually a decision I took after thinking long and hard. I am not a frequent blog reader and most of my news source is through apps which meant I never actually had any need for RSS. I admit I've never actually gotten into RSS, setting up a reading list for different blogs. With Google shuting down its Google Reader service and Firefox dropping support for RSS in their last 2018 release. ![]() RSS is an old technology and has been fading out of the general ecosystem over the years. This is 3rd post in continuation to my major project on this blog.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |