Changes

Jump to navigation Jump to search
142 bytes removed ,  11:27, 12 August 2015
</code>
=Create a collectionCollections=
'''What is One database can contain not only a collection?'''single, but millions of documents. All documents can have a different structure.
With BaseX the following commands, you can group documents into one logical collection. A collection is a create an empty database that contains and add two or more documents. Collections accept any type of XML documents, regardless of their structure.It is also possible to address resources via URLs:
Let's add the xmark.xml document to the factbook database to create a collection. The name of the original factbook database remains.
 
* First make sure factbook is opened:
<code>
> [[Commands#OPEN|OPEN]] factbook
</code>
 
* Now add the xmark.xml document:
<code>
> [[Commands#CREATE DB|CREATE DB]] store> [[Commands#ADD|ADD]] factbook.xml> [[Commands#ADD|ADD]] http://files.basex.org/xml/xmark.xml
</code>
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu