add the function of loading the xml file