Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5990759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:17:24+00:00 2026-05-22T23:17:24+00:00

I am working on a project for an RSS Client. Right now I’m retrieving

  • 0

I am working on a project for an RSS Client. Right now I’m retrieving a feed using SyndicationFeed and an XmlReader and adding it to a list:

SyndicationFeed feed = SyndicationFeed.Load(
    XmlReader.Create("SOME URL TO A FEED"));
List<SyndicationFeed> feeds = new List<SyndicationFeed>();
feeds.Add(feed);

SyndicationFeed and most of its properties are not serializable. I need to be able to save the feeds and their respective items when my program is closed. I have a database solution working with Entity Framework but I would like to get away from this. So my next thought was to simply serialize the container with all the feeds but that’s no go. Should I write serializabl class that mimics the SyndicationFeed and its properties and do a sort of boxing and unboxing or is there a better way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T23:17:25+00:00Added an answer on May 22, 2026 at 11:17 pm

    The SyndicationFeed class has a SaveAsAtom10 method and a SaveAsRss20 method, both of which take a XmlWriter instance which you can use anything as the underlying store for.

    Personally, I’d go with the SaveAsAtom10 method, as I believe Atom is the richer format.

    That said, you can easily persist this into a larger single document by creating a root element and child element in your own namespace, and then having the contents of each feed as the child, like so:

    <feeds xmlns="http://tempuri.org/MyFeedContainer">
        <feed>
            <!-- Atom feed -->
        </feed>
        <feed>
            <!-- Rss feed -->
        </feed>
        <!-- And so on.. -->   
    </feeds>
    

    I’d use an XDocument and XElement instances to handle creating the container above, as namespace management is much easier when using those classes. Additionally, the XElement class exposes a CreateWriter and a CreateReader, which will expose XmlWriter and XmlReader instances respectively, which you can then pass to your SaveAsAtom/SaveAsRss20 methods.

    However, I’d impress upon you to store each of the items separately; depending on how many feeds you have, creating one massive super document might be too much of a drain on resources, depending on your needs. Single document instances persisted in individual entities which you can access independently would probably be much more efficient to process.

    You can still use the SaveAsAtom10 and a SaveAsRss20 methods to serialize the feeds.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to create a RSS feed reader for a project that I working
I'm working on a word press project. I noticed that rss is not working
I had a working project in VS2008 / .Net 3.5 using controls from the
I am working a project where I need to generate a series of classes
I'm currently working on project with Haskell, and have found myself some trouble. I'm
I am working a project that does not have a trunk / branches /
I am working on project in Linux which involves 1) Static Lib in C++
I am only one person working on project - so I am developer without
Working on a project at the moment and we have to implement soft deletion
Working on a project that parses a log of events, and then updates a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.