Exemplo n.º 1
0
Arquivo: Rss.cs Projeto: Angliy/Common
 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();
 }
Exemplo n.º 2
0
 private void Init(string filePath, bool forHtml, bool getValueByCookie)
 {
     helper = new XmlHelper(forHtml);
     if (!helper.Load(filePath))
     {
         throw new Exception("加载语言文件失败:" + filePath);
     }
     if (getValueByCookie)
     {
         GetFromCookie();
     }
 }