Example #1
0
        /// <inheritdoc />
        protected override void InitializeManagers(XPathNavigator navigator)
        {
            if (NamespaceManager == null)
            {
                NamespaceManager = new NamespaceManager();
            }

            if (XPathManager == null)
            {
                XPathManager = new LinqXPathManager(NamespaceManager);
            }
        }
        /// <inheritdoc />
        protected override void InitializeManagers(XPathNavigator navigator)
        {
            Navigator = navigator;
            if (NamespaceManager == null)
            {
                NamespaceManager = new PerThreadBaseNamespaceManager(new XmlNamespaceManager(Navigator.NameTable));
            }

            if (XPathManager == null)
            {
                XPathManager = new LinqXPathManager(NamespaceManager);
            }
        }
        protected virtual IXPathManager CreateXPathManager()
        {
            var xp = new LinqXPathManager(this.NamespaceManager);

            return xp;
        }