Better way of checking for XML responses

Instead of checking for the first character being '<', we should check the content type of the response, if it matches "application/xml".
Update XML check to use strpos and a Yoda condition
Merge pull request #84 from manavo/patch-1

Better way of checking for XML responses