temp = context[context[0]]; if (context[0] == 0)
d = context[0]; temp = context[d]; switch(d) { case 1: val = l1index; break; case 2: val = l2index; break; case 3: val = l3index; break; default: } if (d == 0)
	public boolean toElementNS(int direction, String URL, String ln)		throws NavException {		int size;		int temp;		if (ns == false)			return false;		switch (direction) {			case ROOT :				return toElement(ROOT);			case PARENT :				return toElement(PARENT);			case FIRST_CHILD :				if (toElement(FIRST_CHILD) == false)					return false;				// check current element name				if (matchElementNS(URL, ln) == false) {					if (toElementNS(NEXT_SIBLING, URL, ln) == true)						return true;					else {						//toParentElement();						context[context[0]] = 0xffffffff;						context[0]--;						return false;					}				} else					return true;			case LAST_CHILD :				if (toElement(LAST_CHILD) == false)					return false;				if (matchElementNS(URL, ln) == false) {					if (toElementNS(PREV_SIBLING, URL, ln) == true)						return true;					else {						context[context[0]] = 0xffffffff;						context[0]--;						//toParentElement();						return false;					}				} else					return true;			case NEXT_SIBLING :				temp = context[context[0]]; // store the current position				if (context[0] == 0)					return false;				while (toElement(NEXT_SIBLING)) {					if (matchElementNS(URL, ln)) {						return true;					}				}				context[context[0]] = temp;				return false;			case PREV_SIBLING :				temp = context[context[0]]; // store the current position				if (context[0] == 0)					return false;				while (toElement(PREV_SIBLING)) {					if (matchElementNS(URL, ln)) {						return true;					}				}				context[context[0]] = temp;				return false;			default :				throw new NavException("illegal navigation options");		}	}