private XPathNavigator GetElemNav() {
XPathNavigator tempNav;
switch (this.state) {
case State.Content:
return this.nav.Clone();
case State.Attribute:
case State.AttrVal:
tempNav = this.nav.Clone();
if (tempNav.MoveToParent())
return tempNav;
break;
case State.InReadBinary:
state = savedState;
XPathNavigator nav = GetElemNav();
state = State.InReadBinary;
return nav;
}
return null;
}