Database Reference
In-Depth Information
Common XML Grammars for Parameters
This section details some of the common XML grammars used in
GET
and
POST
oper‐
ations.
wrap XML grammar
The XML grammar describing the result document returned by the REST Server
when the
wrap
request parameter is not set to
no
is formatted as follows:
<exist:result
xmlns:exist=
"http://exist.sourceforge.net/NS/exist"
hits =
number
start =
number
count =
number
session?
=
string
>
any*
</exist:result>
properties XML grammar
The XML grammar for the
properties
request parameter has this format:
<exist:properties>
(exist:property+)
</exist:properties>
<exist:property
name =
string
value =
string/
>
text XML grammar
The XML grammar for the
text
request parameter has this format:
<exist:text>
<![CDATA[
(: Your XQuery code here! :)
]]>
</exist:text>
variables XML grammar
The XML grammar for the
variables
request parameter has the following format,
and you can see it in context in
Example B-1
:
<exist:variables
xmlns:exist=
"http://exist.sourceforge.net/NS/exist"
>
(exist:variable+)
</exist:variables>
<exist:variable
xmlns:sx=
"http://exist-db.org/xquery/types/serialized"
>
(exist:qname,
sx:sequence)
</exist:variable>
Search WWH ::
Custom Search