/// <summary> /// Parses the xml document in order to retrieve the RSS items. /// </summary> private void ParseRssItems(XmlDocument xmlDoc) { _rssItems.Clear(); XmlNodeList nodes = xmlDoc.SelectNodes("rss/channel/item"); foreach (XmlNode node in nodes) { Rss.Items item = new Rss.Items(); ParseDocElements(node, "title", ref item.Title); ParseDocElements(node, "description", ref item.Description); ParseDocElements(node, "link", ref item.Link); string date = null; ParseDocElements(node, "pubDate", ref date); DateTime.TryParse(date, out item.Date); _rssItems.Add(item); } }