Changes

Jump to navigation Jump to search
566 bytes added ,  22:57, 11 July 2014
| <code>\14 {id} {value} {type}</code>
| <code>\0 \0</code>
| Binds a value to the context item. The type will be ignored if the string is empty.
|-
| UPDATING
| Returns all resulting items as strings, prefixed by the [[Server Protocol: Types#XDM Meta Data|XDM Meta Data]]. This command is e. g. used by the [[Developing|XQJ API]].
|}
 
{{Mark|Since Version 8.0}}, also sequences can be bound to variables and the context:
 
* Multiple items are separated in {{Code|value}} with {{Code|\1}} bytes
* If a single item has a type different to the general type, it can be appended to the item with {{Code|\2}} and the type as string.
 
An Example: the three items {{Code|xs:integer(1)}}, {{Code|xs:integer(2)}} and {{Code|xs:string('A')}} are encoded as {{Code|1}}, {{Code|\1}}, {{Code|2}}, {{Code|\1}}, {{Code|A}}, {{Code|\2}}, {{Code|xs:string}}, {{Code|0}} and {{Code|xs:integer}}, {{Code|0}} as general type.
As can be seen in the table, all results end with a single {{Code|\0}} byte, which indicates that the process was successful. If an error occurs, an additional byte {{Code|\1}} is sent, which is then followed by the {{Code|error}} message string.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu