Changes

Jump to navigation Jump to search
No change in size ,  15:13, 26 May 2012
m
Text replace - "{{Mono|" to "{{Code|"
== Create Database ==
Select ''Database'' → ''New'' and browse to an XML document of your choice. As an example, you can start with the {{MonoCode|factbook.xml}} document, which contains statistical information on the worlds' countries. It is included in our official releases and can also be [http://files.basex.org/xml/factbook.xml downloaded] (1.3 MB).
Next, choose the ''OK'' button, and BaseX will create a database that you can visually explore.
|-
|<code>world</code>
|Find tags and texts containing {{MonoCode|world}}
|-
|<code>=world</code>
|-
|<code>~world</code>
|Find text nodes similar to {{MonoCode|world}}
|-
|<code>@world</code>
|-
|<code>"united world"</code>
|Find tags and texts containing the phrase {{MonoCode|"united world"}}
|}
<pre class="brush:xquery">//country</pre>
tells BaseX to look for all <code>country</code> elements in the document. The query is introduced by two slashes <code>//</code>, which trigger the traversal of all document nodes. The queries {{MonoCode|//country}} andd {{MonoCode|/descendant::country}} will return the same results.
''' Example: Find Cities in Switzerland '''
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu