Add error handling in GetResponseXml.