Updated to work with xml file present on server