Update xpath.cpp