Implemented a responseIsXml function

Issue 410 mentioned that if someone needs this, they can implement it. Well, I had the need. Awaiting any/all feedback