adding handling of application/xml