===Query Command Protocol===
Queries are referenced via an {{Code|id}}, which has been returned by the {{Code|QUERY}} command (see above). All results end with a single {{Code|\0}} byte, which indicates that the process was successful:
{| class="wikitable"
| <code>''XDM'' {item} ... ''XDM'' {item} \0</code>
| Returns all resulting items as strings, prefixed by the [[Server Protocol: Types#XDM Meta Data|XDM Meta Data]].
|-
| ↯ error
| <code></code>
| <code>{</code>''partial result''<code>} \1 {error}</code>
| Error feedback.
|}
All results end with a single {{Code|\0}} byte, which indicates that the process was successful. If an error occurs, a byte {{Code|\1}} is sent instead, followed by the {{Code|error message}}.
==Examples==