System.Xml.Schema.AxisStack.MoveToChild C# (CSharp) Method

MoveToChild() private method

private MoveToChild ( string name, string URN, int depth ) : bool
name string
URN string
depth int
return bool
        internal bool MoveToChild(string name, string URN, int depth) {
            bool result = false;
            // push first
            if ( this.subtree.IsDss && Equal (this.subtree.RootNode.Name, this.subtree.RootNode.Urn, name, URN)) {      
                Push(-1); 
            }   
            foreach (AxisElement eaxis in this.stack) {
                if (eaxis.MoveToChild (name, URN, depth, this.subtree)) {
                    result = true;
                }
            }
            return result;
        }

Usage Example

Esempio n. 1
0
        public bool MoveToStartElement(string localname, string URN)
        {
            if (!this.isActive)
            {
                return(false);
            }
            this.currentDepth++;
            bool flag = false;

            for (int i = 0; i < this.axisStack.Count; i++)
            {
                AxisStack stack = (AxisStack)this.axisStack[i];
                if (stack.Subtree.IsSelfAxis)
                {
                    if (stack.Subtree.IsDss || (this.CurrentDepth == 0))
                    {
                        flag = true;
                    }
                }
                else if ((this.CurrentDepth != 0) && stack.MoveToChild(localname, URN, this.currentDepth))
                {
                    flag = true;
                }
            }
            return(flag);
        }
All Usage Examples Of System.Xml.Schema.AxisStack::MoveToChild