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 8224503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:05:43+00:00 2026-06-07T15:05:43+00:00

I have the following RSS feed. I want to read the information inside a

  • 0

I have the following RSS feed. I want to read the information inside a specific description tag. For example i want to get the information in the description tag when its title tag consists of the current day.I cant figure out how to do this. Please help

<item>
<title>Forecast for Saturday as of Jul. 14 5:30 AM IST</title> //If today is Saturday get information in description tag
<link>http://www.wunderground.com/global/stations/43466.html</link>    
  <description>
Thunderstorm. Low:26 &amp;deg; C.
  </description>
  <pubDate>Sat, 14 Jul 2012 00:00:00 GMT</pubDate>
  <guid isPermaLink="false">1342267200-1-night</guid>
</item>
<item>
<title>Forecast for Sunday as of Jul. 14 5:30 AM IST</title>
<link>http://www.wunderground.com/global/stations/43466.html</link>
  <description>
Chance of a Thunderstorm. High:30 &amp;deg; C.
  </description>
  <pubDate>Sat, 14 Jul 2012 00:00:00 GMT</pubDate>
  <guid isPermaLink="false">1342353600-2-day</guid>
 </item>

I was able to get the current day using:

string datenow = DateTime.Today.ToString("dddd / M / yyyy");
string[] words= datenow.Split(' ');
string day = words[0];

This is how i am reading the RSS feed:

 public class RssReader
    {
        public static List<RssNews> Read(string url)
        {
            var webClient = new WebClient();

            string result = webClient.DownloadString(url);

            XDocument document = XDocument.Parse(result);

            return (from descendant in document.Descendants("item")
                    select new RssNews()
                    {
                        Description = descendant.Element("description").Value,
                        Title = descendant.Element("title").Value,
                        PublicationDate = descendant.Element("pubDate").Value
                    }).ToList();
        }
    }
  • 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-06-07T15:05:44+00:00Added an answer on June 7, 2026 at 3:05 pm

    As per your Requirement you just want to get description of current day .You have list of News feeds with Title ,description ..etc Now You can change your class (add a method in Your class ) if day is Current Day

    public static string GetCurrentDayDescription(){

       var lst = Read("url");
       var resDescription = (from x in lst where x.Title.Contains(day) 
                              select x.Description).ToArray() ;
        return resDescription[0] ;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following xml <rss> <channel> <item><title><![CDATA[bla]]></title><description><![CDATA[desc1]]></description><link>blah</link></item> <item><title><![CDATA[bleh]]></title><description><![CDATA[desc2]]></description><link>blahhh</link></item> </rss> </channel> I want to
I have following function to get yahoo weater rss items. I want to run
I have a rss feed which has items in following format <item> <title>How Are
I have the following rss feed which I would like to query to get
Using the url: http://www.remote_host.com/feed.php?callback=jsonpCallback I get back: jsonpCallback({ rss: { channels: [ { title:
I want to read and save some data from this rss feed to in
I have the following data being generated from a google spreadsheet rss feed. いきます,go,5
I'm using the following code to read a RSS feed. The problem is that
I have a Flask web app, that shows information from a rss feed. I
I have the following code that converts my twitter account rss feed into 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.