<pre class="brush:xml">
create db CREATE DB testadd ADD input.xmladd to ADD TO embedded.xml <root>embedded</root>xquery XQUERY count(//text())
</pre>
{{Mark|Introduced with Version 7.3:}}
The string syntax provides only is limited support for when it comes to embedding XML snippets.or specifying complex queries,This is why database commands can also be specified in XML. The syntax of the ''BaseX Markup Language''.An example:
<pre class="brush:xml">
</pre>
Multiple If multiple commands are surrounded with specified, they are wrapped into a {{Code|<commands/>}} root element:
<pre class="brush:xml">
</pre>
===Command Scripts===
{{Mark|Introduced with Version 7.4:}}
Both commands Commands strings and XML scripts can also be stored in to disk. If a file and executed via the [[Startup Options#BaseX Standalone|command-line option -c]]. The recommended suffix for BaseX command scripts is with {{Code|.bxs}}; if a file with this as suffix is passed on as to a BaseX instance or command-line argument, the -c option can it will automatically be ommittedrecognized and evaluated as a command script.
==Glob Syntax==
For some Some commands, support the glob syntax can be used to address more than one database or user. Question marks and asterisks can be used to match one or more characters, and commas can be used to separate multiple patterns. Some examples:
* {{Code|AB?}} addresses all names with the characters {{Code|AB}} and one more character.