Hi Pubudu,

Streaming may be a non-trivial task. Before thinking about pipelining input data, I would first be interested if data transmission will really be a potential bottleneck. Have you already done som profiling?

Cheers,
Christian



On Thu, Apr 28, 2016 at 10:45 AM, Pubudu Fernando <pubuduf@wso2.com> wrote:
Hi,

I was going through the sample file given at [1]. Here, the XML file is taken from a file. Is there any way of giving the XML as a stream instead? The requirement is to use XPath expressions on an XML payload that comes with an HTTP request (the payload will be available to consume, as an InputStream) to check whether the payload contains some given text/data. 

I also had a look at [2]. Is this approach valid only for common types like integer, string etc?