internal void MoveToParent(string name, string URN, int depth) {
if (this.subtree.IsSelfAxis) {
return;
}
foreach (AxisElement eaxis in this.stack) {
eaxis.MoveToParent (depth, this.subtree);
}
// in ".//"'s case, since each time you push one new element while match, why not pop one too while match?
if ( this.subtree.IsDss && Equal (this.subtree.RootNode.Name, this.subtree.RootNode.Urn, name, URN)) {
Pop();
} // only the last one
}