added application/xml support