In addition to the string syntax, database commands can also be formulated in XML. All commands are surrounded by a {{Code|<commands/>}} root element. The following XML script creates a database, adds two documents and performs a query:
<pre class="brush:xqueryxml">
<commands>
<create-db name='test'/>