Changes

Jump to navigation Jump to search
629 bytes added ,  13:10, 22 August 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. 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 If no XML document of your choice. As an exampleis available, you can start with the {{Code[[#Text Editor|factbookText Editor]] can be used to create and edit XML documents.xml}} After saving the documentto disk, which contains statistical information on the worlds' countries. It is included in our official releases and it can also be [http://files.basex.org/xml/factbook.xml downloaded] (1.3 MB). If you type nothing in supplied as input for the input field, an empty database will be created. Next, choose creation of the ''OK'' button, and BaseX will create a database that you can visually explore and query.
If no XML document =Text Editor= The built-in text editor is availablea powerful tool for writing XQuery scripts and modules, the and for developing full [[#Text Editor|Text EditorRESTXQ]] applications. It can also be used to create an initial edit XML documents, [[Commands#Basics|Command Scripts]], and any other text files: * XQuery and XML documentfiles will be '''parsed''' with each key click, and '''errors''' will be highlighted. After saving * XQuery and command scripts can be '''executed''' by clicking on the entered green triangle. * '''Syntax highlighting''' is available for XQuery, XML, JSON and JavaScript files. Numerous [[Shortcuts|keyboard shortcuts]] are available to speed up editing and debugging. {{Mark|Introduced with Version 9.1}}: If you right-click on an XML document in the Project View, the selected file will be parsed and bound to harddisk, it the context item: [[Image:BaseX-Editor-Context.png|449px]] ==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 specified 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 above dialogbackground. 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.
=Input Bar=
* <code>CREATE DB TEST</code>: Creates an empty database named "TEST".
* <code>LIST</code>: Lists all databases.
 
=Text Editor=
 
The powerful text editor can be used to write and evaluate [[XQuery]] code (simple queries, modules) and [[Commands#Basics|Command Scripts]], and edit any other text files:
 
* XQuery and command scripts can be '''executed''' by clicking on the green triangle.
* XQuery, XML and JavaScript will be '''syntax highlighted'''.
* XQuery and XML will automatically parsed with each key click, and errors will be highlighted.
 
Numerous [[Shortcuts|keyboard shortcuts]] are available to speed up editing and debugging.
=Realtime Options=
=Changelog=
 
;Version 9.1
 
* Added: Project View, set XML document as context.
 
;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