Added functionality for getting the xml reports