Implemented a responseIsXml function, to check if the response received is in the format of xml.