Add code for xtpath.