Jersey XML into Map
<p>Due to old project decisions, I work on a project that uses Jersey to connect to services that return XML data. Sometimes I could create the bean/pojo/whatever annotated with <code>XmlRootElement</code> and use <code>webTarget.get(MyPojo.class)</code></p>

<p>However, if I try to do what I would do with, say, Jackson, and do <code>webTarget.get(Map.class)</code> I get the following error:</p>

<pre><code>MessageBodyReader not found for media type=text/xml, type=interface java.util.Map, genericType=interface java.util.Map.
</code></pre>

<p>My case is, I have a XML that can have arbitrary fields whithin, so the ideal way for me to read it is to read a Map. Is there any way I can do that without having to rely in other libraries? I don't need to serialize data, only deserialize responses from the web services I connect to.</p>