Updated with the XML file name in the function parameter