Changes

Jump to navigation Jump to search
282 bytes added ,  23:18, 7 June 2012
=Conventions=
Multiple commands can be separated by semicolons. The following command string can be dispatched to create a database, add two documents to it and perform a query: <pre class="brush:xml">create db test; add input.xml; add to embedded.xml <root>embedded</root>; xquery count(//text())</pre> Note that the embedding of XML in command strings is limited to short strings without whitespaces.
==XML Syntax==
{{Mark|Introduced with Version 7.3:}}
In addition to the string compact syntax, database commands can also be formulated in XML. All commands are surrounded by a {{Code|<commands/>}} root element. The , as shown by the following XML script creates a database, adds two documents and performs a query
<pre class="brush:xml">
<commands>
<create-db name='test'/>
<add>input.xml</add>
<add path='embedded.xml'><root>Embedded Documentembedded</root></add>
<xquery>count(//text())</xquery>
</commands>
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu