function for admin to fetch xml data from server