Changes

Jump to navigation Jump to search
68 bytes added ,  12:21, 6 March 2012
|-
| valign='top' | '''Summary'''
|Creates the database <code>[name]</code> with an optional <code>[input]</code>.<br />The input may either be a single XML document, a directory, a remote URL or a plain XML string. Valid database names may contain letters, numbers, underslashes underscores and dashes (defined by the regular expression [-_a-zA-Z0-9]+).
|-
| valign='top' | '''Errors'''
|
* <code>CREATE DATABASE input</code><br/>creates an empty database <code>input</code>.
* <code>CREATE DATABASE input inputxmark http://files.basex.org/xml/xmark.xml</code><br/>creates the database <code>input</code> with inputthe remote file xmark.xml as initial content.* <code>CREATE DATABASE coll folder/path/to/input</code><br/>creates the database <code>coll</code> with all documents from the directory <code>folderinput</code> directory as initial content.* <code>SET INTPARSE truefalse;CREATE DB input input.xml</code><br/>creates a database <code>input</code>, using the Java's [[Parsers#XML Parsers|internal default XML parser]].
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu