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
?
Xml – What’s the difference between text/xml vs application/xml for webservice response
jerseyrestxml
Best Answer
From the RFC (3023), under section 3, XML Media Types:
(emphasis mine)