Changes

Jump to navigation Jump to search
14 bytes removed ,  13:08, 22 August 2018
no edit summary
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.
If no XML document is available, the [[#Text Editor|Text Editor]] can also be used to create an initial and edit XML documentdocuments. After saving the entered XML document to disk, it can be supplied as input for the creation of the database input . =Text Editor= The built-in text editor is a powerful tool for writing XQuery scripts and modules, and for developing full [[RESTXQ]] applications. It can also be used to edit XML documents, [[Commands#Basics|Command Scripts]], and any other text 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. * '''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 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 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 built-in text editor is a powerful tool for writing XQuery scripts and modules, and for developing full [[RESTXQ]] applications. It can also be used to edit XML documents, [[Commands#Basics|Command Scripts]], and any other text 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.
* '''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 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 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=
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu