Changes

Jump to navigation Jump to search
312 bytes removed ,  15:56, 10 January 2011
</code>
===Create an another a new database / switch between databases===Now we will create an another database. You can get find the xml example document from here : [http://phobos101.inf.uni-konstanz.de/basex/demo].:<code>> create db xmark xmark.xml</code> To set the new database xmark as the context (the active, opened database), use::<code>> open xmark</code> Now you can simply type your xquery::<code>> xquery //people/person/name</code>
If you want to query * Create the factbook new database you can access it by explicitly naming it with the doc()-function, named 'xmark'.:<code> : > xquery doc("factbook")//countrycreate db xmark xmark.xml
</code>
If you want to set * Set the factbook new database xmark as the context, you can use::<code>: > open factbookxmark
</code>
To see which * Now you can easily execute queries on your new database is opened, use::<code>: > show databasesxquery //people/person/name
</code>
administrator, Bureaucrats, editor, reviewer, Administrators
408

edits

Navigation menu