Пример #1
0
        public RssFeed(string url)
        {
            Url = url;
            Raw = new BrowserClient().DownloadString(url);
            Xml = new XmlDocument();
            Xml.LoadXml(Raw);

            Title = Xml.SelectSingleNode("//rss/channel/title").InnerText;
            Items = new List<RssItem>();
            foreach (XmlNode node in Xml.SelectNodes("//item"))
            {
                Items.Add(new RssItem(node));
            }
        }
Пример #2
0
        public RssFeed(string url)
        {
            Url = url;
            Raw = new BrowserClient().DownloadString(url);
            Xml = new XmlDocument();
            Xml.LoadXml(Raw);

            Title = Xml.SelectSingleNode("//rss/channel/title").InnerText;
            Items = new List <RssItem>();
            foreach (XmlNode node in Xml.SelectNodes("//item"))
            {
                Items.Add(new RssItem(node));
            }
        }