What's the difference between text/xml vs application/xml for webservice response
Asked 07 September, 2021
Viewed 2.5K times
  • 59
Votes

This is more of a general question about the difference between text/xml and application/xml. I am fairly new to writing webservices (REST - Jersey). I have been producing application/xml since it is what shows up in most tutorials / code examples that I have been using to learn, but I recently found out about text/xml and was wondering what is different about it and when would you use it over application/xml?

4 Answer