Changes

Jump to navigation Jump to search
9 bytes removed ,  11:37, 28 March 2015
==Output==
Similar to The content-type of a response can be influenced by the user via [[REST#Content TypeSerialization|RESTSerialization Parameters]] interface, result serialization can be modified via . The steps are described in the [[XQuery 3.0REST#SerializationContent Type|XQuery 3.0 serialization parametersREST]]chapter. In RESTXQ, serialization parameters may can be specified in the query prolog, via annotations, or within the REST response element. Global parameters are overwritten by more local parameters.:
===Query Prolog===
===Annotations===
The Global serialization parameters can also be parameterized overwritten via <code>%output</code> annotations. The following example serializes XML nodes as JSON, using the [[JSON Module|JsonML]] format:
<pre class="brush:xquery">
===Response Element===
The following example demonstrates how serialization Serialization parameters can also be dynamically set within specified in a REST reponse element in a query. Serialization parameters will be overwritten:
<pre class="brush:xquery">
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu