⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 htmlfeed.cs

📁 可以收藏RSS和ATOM格式新闻频道,还可以收藏常用的html格式的网址;可以在新闻快客的地址栏直接输入任何网址浏览网页官方网址:http://t811.uu1001.com
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace NewsReader
{
    [Serializable]
    public class HtmlFeed : FeedBase
    {
        public HtmlFeed(){}

        public HtmlFeed(string title, ref string url, string description):base(title,url,description)
        {
            base.DisplayName = title;
            base.Url = url;
            base.Description = description;
        }

        //继承父类的方法,实现对文章查看
        public override void FillArticles()
        {
            XmlDataDocument xmldoc = new XmlDataDocument();
            xmldoc.Load(base.Url);
            Console.Write(xmldoc.Name.ToString());

            //将每个节点的内容读到articles对象中
            Article article = new Article();

            base.DisplayName = this.DisplayName;
            base.Url = this.Url;
            base.Description = this.Description;
            base.Clicks = this.Clicks;
            base.Feedtype = "rss";
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -