Changes

Jump to navigation Jump to search
18 bytes removed ,  15:03, 19 March 2018
This page is part of the [[Getting Started]] Section.
The BaseX homepage gives you a [http://basex.org/products/gui visual impression] of the graphical user interface (GUI) of BaseX, and an [http://www.youtube.com/watch?v=xILHKGPGaJ4&hd=1 introductory video] is available, which presents some of its interactive features.
=Startup=
First of all, launch a GUI instance of BaseX. Depending on your operating system, double click on the '''BaseX GUI''' start icon or run the <code>basexgui</code> script. Beside that, some more [[Startup#BaseX GUI|startup options]] are available.
==Create Select ''Database=='' → ''New'' and browse to an XML document of your choice. As an example, you can start with the {{Code|factbook.xml}} document, which contains statistical information on the worlds' countries. It is included in our full releases (in the {{Code|etc}} directory) and can also be [http://files.basex.org/xml/factbook.xml downloaded] (1.3 MB). If you type nothing in the input field, an empty database will be created. Next, choose the ''OK'' button, and the database will be created.
Select ''Database'' → ''New'' and browse to an XML document of your choice. As an example, you can start with the {{Code|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). If you type nothing in the input field, an empty database will be created. Next, choose the ''OK'' button, and BaseX will create a database that you can visually explore and query. If no XML document is available, the [[#Text Editor|Text Editor]] can also be used to create an initial XML document. After saving the entered XML document to harddiskdisk, it can be supplied as database input in the above dialog.
=Input Bar=
=Text Editor=
The powerful built-in text editor can be used to write and edit is a helpful tool for writing [[XQuery]] code (simple queries, modules), that spans multiple lines or files. It can also be used to edit XML documents, [[Commands#Basics|Command Scripts]], and any other textual files:
* XQuery and XML files will be '''parsed''' with each key click, and '''errors''' will be highlighted.
* XQuery and command scripts can be '''executed''' by clicking on the green triangle.
* XQuery, XML and JavaScript will be '''syntax highlightedSyntax highlighting'''.* is available for XQuery and , XML will automatically '''parsed''' with each key click, JSON and '''errors''' will be highlightedJavaScript files.
Numerous [[Shortcuts|keyboard shortcuts]] are available to speed up editing and debugging.
==Project View== The attached '''Project View''' lists is attached to the editor panel. It displays all files of the current project directoryin a tree structure. This directory Files can be changed renamed and deleted by right-clicking on the button with files. The project directory can be changed as well; the three dots <code>most recent directories will be kept in the history...</code>  All XQuery files in the upper left corner of project directory will be parsed in the project view panelbackground. Since {{Version|8.4}}Buggy XQuery modules, all erroneous XQuery and files importing these modules , will automatically be highlightedmarked red. With the text fields on top, you can interactively search for file names and contents.
=Realtime Options=
[[Image:InfoView.png|thumb|Info View]]
'''Query Info'''
:Helpful for analyzing the query plans of your XQuery expressions. It also displays information on the compilation and evaluation of queries.
</td></tr></table>
=Changelog=
;Version 8.04
* Added: highlighting of erroneous XQuery modules in the project view.
Bureaucrats, editor, reviewer, Administrators
13,551

edits

Navigation menu