System.Xml.Xsl.Runtime.XmlNavigatorFilter.MoveToFollowing C# (CSharp) Method

MoveToFollowing() public abstract method

Reposition the navigator to the next following node (inc. descendants); skip over filtered nodes. If there are no matching nodes, then return false.
public abstract MoveToFollowing ( XPathNavigator navigator, XPathNavigator navigatorEnd ) : bool
navigator System.Xml.XPath.XPathNavigator
navigatorEnd System.Xml.XPath.XPathNavigator
return bool
        public abstract bool MoveToFollowing(XPathNavigator navigator, XPathNavigator navigatorEnd);

Usage Example

Exemplo n.º 1
0
        public bool MoveNext()
        {
            if (!_navStack.IsEmpty)
            {
                while (true)
                {
                    // Move to the next matching node that is before the top node on the stack in document order
                    if (_filter.MoveToFollowing(_navCurrent, _navStack.Peek()))
                    {
                        // Found match
                        return(true);
                    }

                    // Do not include ancestor nodes as part of the preceding axis
                    _navCurrent.MoveTo(_navStack.Pop());

                    // No more preceding matches possible
                    if (_navStack.IsEmpty)
                    {
                        break;
                    }
                }
            }

            return(false);
        }
All Usage Examples Of System.Xml.Xsl.Runtime.XmlNavigatorFilter::MoveToFollowing