change the location of the Dir
add the xmlindex function