public Rss() { rssDoc = new XmlHelper(false); rssDoc.LoadXml("<?xml version=\"1.0\" encoding=\"utf-8\"?><rss version=\"2.0\"><channel></channel></rss>"); channel = new RssChannel(); }
private void Init(string filePath, bool forHtml, bool getValueByCookie) { helper = new XmlHelper(forHtml); if (!helper.Load(filePath)) { throw new Exception("加载语言文件失败:" + filePath); } if (getValueByCookie) { GetFromCookie(); } }