Changes

Jump to navigation Jump to search
155 bytes removed ,  03:09, 17 December 2012
=Basics=
 
==Command Scripts==
 
{{Mark|Introduced with Version 7.5:}}
 
Commands in both the string and XML syntax can be stored on disk and suffixed with {{Code|.bxs}}. If the path to a command script is passed on to BaseX, it will automatically be recognized and evaluated as such.
==String Syntax==
Multiple commands can be written in a single line and separated by semicolons, or stored as command script. The following lines contain some commands for creating script creates a database, adding adds two documents to it and performing performs a query:
<pre class="brush:xml">
XQUERY count(//text())
</pre>
 
If multiple commands are specified in a single line, they can be separated by semicolons.
==XML Syntax==
{{Mark|Introduced with Version 7.3:}}
The string syntax is limited when it comes to embedding XML snippets need to be embedded in a command,or specifying when complex queries,This is why database commands can also are to be specified in XML. The syntax of the ''BaseX Markup Language''.An example: <pre class="brush:xml"><create-db name='test'><root>Text</root></create-db></pre>
If multiple This is why database commands are can also be specified, they are wrapped into in XML.Multiple commands can be enclosed by a {{Code|<commands/>}} root element:
<pre class="brush:xml">
</commands>
</pre>
 
==Command Scripts==
 
{{Mark|Introduced with Version 7.5:}}
 
Commands strings and XML scripts can also be stored to disk. If a file with {{Code|.bxs}} as suffix is passed on to a BaseX instance or command, it will automatically be recognized and evaluated as a command script.
==Glob Syntax==
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu