Changes

Jump to navigation Jump to search
45 bytes added ,  15:03, 19 March 2018
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.
==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-clicks clicking on the files. The project directory can be changed by clicking on as well; the button with the three dots <code>...</code> most recent directories will be kept in the upper left corner of the project view panelhistory.
Erroneous All XQuery files in the project directory will be parsed in the background. Buggy XQuery modules, and all queries files importing these modules, will be highlightedmarked red. Highlighting With the text fields on top, you can be disabled in the GUI preferences dialoginteractively search for file names and contents.
=Realtime Options=
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu