Safer xpaths and xml navigation