Exemplo n.º 1
0
        public preprocessCache get_cache(IXPathNavigable __source)
        {
            if (_cache_handler == null)
            {
                _cache_handler   = new PropertyChangedEventHandler(_cache_updateCache);
                PropertyChanged += _cache_handler;
            }

            if (_cache == null)
            {
                _cache = new preprocessCache(this, __source);
            }

            return(_cache);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 2014c> vraca optimizovan Xml sadrzaj
        /// </summary>
        /// <param name="input"></param>
        /// <param name="settings"></param>
        /// <param name="cached"></param>
        /// <returns></returns>
        public XPathNavigator preprocessNodes(XPathNavigator input)
        {
            preprocessCache cached = get_cache(input);


            if (doFocusToBody)
            {
                input.MoveToChild("body", input.NamespaceURI);
            }

            //XmlNode start = input;
            //
            //{
            //    start = input.SelectSingleNode("body", cached.xNm);
            //    if (start == null) start = input;
            //}

            IXPathNavigable output = input.filterCloning(cached, cached.toRemoveAttributes, developingLimit,
                                                         preprocessNodeText);


            return(output.CreateNavigator());
        }
Exemplo n.º 3
0
 private void _cache_updateCache(object sender, PropertyChangedEventArgs e)
 {
     _cache = null;
 }