Changes

Jump to navigation Jump to search
364 bytes added ,  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 specified supplied as database input in the above dialog.
=Input Bar=
=Text Editor=
The powerful built-in text editor can be used to write and evaluate is a helpful tool for writing [[XQuery]] code (simple queriesthat spans multiple lines or files. It can also be used to edit XML documents, modules) and [[Commands#Basics|Command Scripts]], and edit any other text 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 Project View is attached to the editor panel. It displays all files of the current project directory in a tree structure. Files can be renamed and deleted by right-clicking on the files. The project directory can be changed as well; the most recent directories will be kept in the history.
 
All XQuery files in the project directory will be parsed in the background. Buggy XQuery modules, and files importing these modules, will be marked red. With the text fields on top, you can interactively search for file names and contents.
=Realtime Options=
=Changelog=
 
;Version 8.4
 
* Added: highlighting of erroneous XQuery modules in the project view.
;Version 8.0
* Updated: support for dark look and feels; support for JTatto library
 
[[Category:Beginner]]
[[Category:GUI]]
[[Category:XQuery]]
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu