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(); }
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(); } }
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(); } }