modify the previous generated location problem in xml