</td></tr></table>
== Example Queries Querying ==
Apart from the basic search facilities, BaseX offers far more sophisticated processing options to query your documents. Below are some examples you might give a try. This guide is far from being a comprehensive XQuery reference, but might point you in the right direction.
To execute the following queries, enter them in the XQuery Panel and hit the PLAY button.
=== XPath ===
XPath provides an easy facility to query your documents in a navigational manner. It is the basic tool of all node-related operations that you encounter when using XQuery. We will start with a trivial example and extend it to our needs.
==== Example: Find all Countries ====
<code> //country</code>
As an example, <code>//country</code> is equivalent to <code>/descendant::country</code>.
==== Example: Find the Names of all Cities in Switzerland ====
The following query uses a '''predicate''' <code>[...]</code> to filter all <code>country</code> nodes which have a <code>name</code> child, the string value of which is "Switzerland":