You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "Vjacheslav V. Borisov" <sl...@gmail.com> on 2017/01/19 09:48:47 UTC

Streaming xml parsing

Hi!

There is possibility to do Response Streaming
http://cxf.apache.org/docs/jax-rs-basics.html#JAX-RSBasics-ResponseStreaming

Is there any option to read xml from stream, accessing elements as they are
appear in input ("Request Streaming") ?

Re: Streaming xml parsing

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi

You can register a custom XMLStreamReader, for example,

https://github.com/apache/cxf/blob/master/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/CustomXmlStreamReader.java

https://github.com/apache/cxf/blob/master/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/XMLStreamReaderInInterceptor.java

Sergey
On 19/01/17 09:48, Vjacheslav V. Borisov wrote:
> Hi!
>
> There is possibility to do Response Streaming
> http://cxf.apache.org/docs/jax-rs-basics.html#JAX-RSBasics-ResponseStreaming
>
> Is there any option to read xml from stream, accessing elements as they are
> appear in input ("Request Streaming") ?
>


-- 
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/