Esempio n. 1
0
 public Rss()
 {
     rssDoc = new XHtmlAction(false);
     //rssDoc.ReadOnly = true;
     rssDoc.LoadXml("<?xml version=\"1.0\" encoding=\"utf-8\"?><rss version=\"2.0\"><channel></channel></rss>");
     channel = new RssChannel();
 }
Esempio n. 2
0
 private void Init(string filePath, bool isForHtml, bool isInitValueFromCookie)
 {
     helper           = new XHtmlAction(isForHtml);
     helper.IsNoClone = true;//只读,节省Clone,节省CPU
     if (!helper.Load(filePath, XmlCacheLevel.Day))
     {
         Error.Throw("Load xml failed : " + filePath);
     }
     if (isInitValueFromCookie)
     {
         SetLanKeyByCookie();
     }
 }
Esempio n. 3
0
 private void Init(string filePath, bool forHtml, bool getValueByCookie)
 {
     helper = new XHtmlAction(forHtml);
     helper.NoClone = true;//只读,节省Clone,节省CPU
     if (!helper.Load(filePath, XmlCacheLevel.Day))
     {
         Error.Throw("Load xml failed : " + filePath);
     }
     if (getValueByCookie)
     {
         GetFromCookie();
     }
 }