finish some code of xpath.c

finish some code of xpath.c