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?
[1] - https://github.com/BaseXdb/basex/blob/master/basex-examples/src/main/java/or... [2] - https://github.com/BaseXdb/basex/blob/master/basex-examples/src/main/java/or...
Thanks
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?
[1] - https://github.com/BaseXdb/basex/blob/master/basex-examples/src/main/java/or... [2] - https://github.com/BaseXdb/basex/blob/master/basex-examples/src/main/java/or...
Thanks
*Pubudu Fernando* Software Engineer - Intern WSO2 Inc. m: +94 77 888 2543
https://lk.linkedin.com/in/pubuduf http://blog.pubudu.xyz/ https://github.com/pubudu91 http://stackoverflow.com/users/4329912/pubudu
basex-talk@mailman.uni-konstanz.de