create xml response handler