Changes

Jump to navigation Jump to search
1,868 bytes added ,  07:22, 22 September 2011
As an example, <code>//country</code> is equivalent to <code>/descendant::country</code>.
 
==== Find the Names of all Countries ====
 
<code> //country/name</code>
 
This query returns the <code>name</code> children of all <code>country</code> elements. The result looks as follows:
 
<code> <name>Albania</name><br /> <name>Andorra</name><br /> ...</code>
==== Find the Names of all Cities in Switzerland ====
<code> //country[name = "Switzerland"]//city</code>
 
== Visualizations ==
 
The BaseX GUI offers various visualizations,
which help you to explore your XML data instances from different perspectives:
 
<table cellpadding="0" cellspacing="0"><tr><td valign="top" width="49%">
[[Image:TextView.jpg|thumb|Text View]]
;→ ''Text''
:Displays query results and other textual output. Query results can be saved in a file.
</td><td valign="top" width="2%">&nbsp;</td><td valign="top" width="49%">
[[Image:MapView.jpg|thumb|Map View]]
;→ ''Map''
:This visualization represents all data in a TreeMap. All nodes of the XML document are represented as rectangles, filling the complete area. You can choose one of the following layout algorithms in the Menu ''Options'' → ''Map Layout'': Split, Strip, Squarified, Slice&Dice and Binary Layout.
</td></tr><tr><td valign="top">
[[Image:TreeView.jpg|thumb|Tree View]]
;→ ''Tree''
:This visualization displays all XML nodes in a top down tree with edges and nodes. You can change some settings of the Tree in the Menu ''Options'' → ''Tree Options''.
</td><td valign="top" width="2%">&nbsp;</td><td valign="top" width="49%">
[[Image:FolderView.jpg|thumb|Folder View]]
;→ ''Folder''
:This visualization displays all nodes in a usual folder view.
</td></tr><tr><td valign="top">
[[Image:Scatterplot.jpg|thumb|Scatterplot View]]
;→ ''Plot''
:This visualization displays all nodes in a scatterplot. There are drop down menus to configure the allocation of the Y- and X-axis.
</td><td valign="top" width="2%">&nbsp;</td><td valign="top" width="49%">
[[Image:TableView.jpg|thumb|The Table View]]
;→ ''Table''
:This visualization displays all nodes in a table with rows and columns.
</td></tr><tr><td valign="top">
[[Image:ExplorerView.jpg|thumb|Explorer View]]
;→ ''Explorer''
:With this visualization you can explore the contents of your database via drop-down menus, search fields and some sliders.
</td><td valign="top" width="2%">&nbsp;</td><td valign="top" width="49%">
[[Image:InfoView.png|thumb|Info View]]
;→ ''Info''
:This visualization gives details on the execution of database commands and XQuery expressions.
</td></tr></table>
== What's Next? ==
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu