refine xpath.c

refine xpath.c