Okay, I thought setting output to application/xml but wrap=no will mean the person writing the query is taking the responsibility that they do not want results to be wrapped but know the result is xml so forcing the output to be application/xml (so that the response mime-type is set to application/xml in this case)...what are the valid values for output parameter?
An invocation like http://localhost:8984/basex/jax-rx?wrap=no&query=1+to+10&output=text/xml or http://localhost:8984/basex/jax-rx?wrap=yes&query=1+to+10&output=text/xml (or text%2Fxml) results in:
[SERE0000] Parameter "text/xml" is unknown.
> Brilliant, thanks. However, I also want to change the returned type toAs you correctly observed, the JAX-RX interface returns text/plain as
> application/xml or text/xml
return type if wrapping is turned off. This decision has been taken as
it can't be assured that the result will be correct XML, or XML at
all. See the following query as example:
http://localhost:8984/basex/jax-rx?wrap=no&query=1+to+10
The "output" parameter has always been supported in BaseX; could you
> and the parameter named output as documented
> does not appear to be supported in ver 6.5 on the maven repo
provide us with a query that demonstrates the problem?
Christian