Changes

Jump to navigation Jump to search
23 bytes removed ,  16:22, 10 January 2011
no edit summary
To get familiar with BaseX we suggest to execute the following basic operations.
===Creating Create a database===
* To create a database you need an XML document, e.g. [http://www.w3.org/XML/Binary/2005/03/test-data/Over100/factbook.xml factbook.xml].
* Save this document to the /basex directory.
Databases are stored in the BaseXData directory which is located in your home folder. Depending on your operating system the location of your home folder varies. For example, on a mac it's /Users/John, if your name is John.
===Executing Execute a query===
The [[Commands|xquery]] command lets you run a query.
* For example, this query returns all country nodes in the currently opened database.
</code>
===Creating Create a new database===
Now we will create another database. You can find the example document here: [http://phobos101.inf.uni-konstanz.de/basex/demo].
</code>
===Switching Switch the database===
* You can explicitly query the factbook database with the doc()-funtion, no matter what the current context is.
<code>
===Closing Close or deleting delete a database===
* To [[Commands|close]] the current context database type:
<code>
</code>
===Creating Create a collection===
'''What is a collection?'''
With BaseX you can group documents into one logical collection. A collection is a database that contains two or more documents. Collections accept any type of XML documents, regardless of their structure.
</code>
===Deleting Delete a document from a collection===
* Deleting a document from a collection is very easy:
<code>
Make sure the collection which contains the xmark.xml document is opened.
===Deleting Delete a collection===
Deleting a collection is the same as deleting a database.
</code>
===Getting Get information about the server===
Several commands help to explore the state of a server. For a complete list see the [[Commands|commands section]].
administrator, Bureaucrats, editor, reviewer, Administrators
408

edits

Navigation menu