Getting rid of unecessary pathfinding for xml file.