Definitive fix for relative directories in XMLFile