[jax-rs-spec users] [jsr339-experts] Re: Specific note regarding text/xml and application/xml

From: Sergey Beryozkin <>
Date: Tue, 15 May 2012 10:27:46 +0100

On 15/05/12 09:54, Marek Potociar wrote:
> Not sure if we should do that since there is a problem with encoding in text/xml which causes a subtle but important difference between the two media types. Perhaps we should instead just encourage people to not use text/xml if possible?
I don't mind if the developers will be encouraged to move to

What happens in many simple cases, is that people are asking, when the
basic XMLs are posted, Content-Type is text/xml, Consumes is
application/xml, why there's no match. Seems not very intuitive.

But easy enough to solve by listing both text/xml, and application/xml
I've no strong opinion on whatever resolution (or none at all) that
might be preferred, just wanted to highlight this minor issue


> Marek
> On May 14, 2012, at 11:46 PM, Sergey Beryozkin wrote:
>> Hi, right now the specification does not mandate that
>> text/xml matches application/xml.
>> Technically they do not, but I wonder would it make sense to make a specific exclusion in this case ? A minor issue really, I can open a JIRA if people see it might make sense
>> Sergey

Sergey Beryozkin
Talend Community Coders