예제 #1
0
        private static void List()
        {
            var feeds = _feedManager.ReadFeeds();

            foreach (var feed in feeds)
            {
                XmlNodeList rssNodes = feed.SelectNodes("rss/channel/item");

                foreach (XmlNode item in rssNodes)
                {
                    Console.WriteLine(item.SelectSingleNode("title").InnerText);
                    Console.WriteLine(item.SelectSingleNode("pubDate").InnerText);
                    Console.WriteLine(item.SelectSingleNode("link").InnerText);
                    Console.WriteLine(Environment.NewLine);
                }
            }
        }