XPATH valgrind parsing