On Thu, May 12, 2011 at 1:46 AM, Christian Hennig
<caraboides_at_googlemail.com> wrote:
> Ok i understand.
>
> But i have now idea, how to "specify custom entity resolver"
>
> i found: http://blogs.oracle.com/japod/entry/better_json_available_in_jersey
>
> but i dont see, how i can manipulate the xml parser.
>
> Can u give me any hint? Or example ( that would be nice ;-)
I don't have an example at hand, but generally you need to configure
whatever XML specific (input) thing you pass. So instead of giving an
InputStream, you config XMLStreamReader or XMLInputFactory (for Stax)
or matching SAX thingy (ContentHandler or XMLReader)
And finding out how to do that is bit easier because it is not JAX-RS
specific, but a more general Java/XML question. And this particular
problem is actually very common one, wish I had a link to a FAQ entry,
as there must be one or two around.
Hope this helps,
-+ Tatu +-