Added response type handler for XML.