Documents can be opened using one of the actions:
Ctrl+O) or press the toolbar button to display the Open dialog used to discover, select and open one or more files. The start folder of the Open dialog can be either the last folder visited by the Open dialog the last time it was used in <oXygen/> or the folder of the current file edited in <oXygen/> This can be configured in the user preferences.
→ (Open URL dialog used to open a document using FTP/SFTP/WebDAV.
→ or press the toolbar button to display the→ : Loads the last saved file content. All unsaved modifications are lost.
→ : Displays a list of recently opened document files. Select a file to open.
→ : Opens the selected file from the Project view.
From the command line when the <oXygen/> application is launched. If <oXygen/> is launched from the command line with the startup script installed by the installation wizard you can specify local file names as optional parameters:
multiple XML files to be opened automatically at startup in separate editor panels:
scriptName [pathToXMLFile1] [pathToXMLFile2] ...
where scriptName is the name of the startup script for your platform (oxygen.bat on Windows, oxygen.sh on Unix/Linux, oxygenMac.sh on Mac OS) and pathToXMLFileN is the name of a local XML file
an XML file and a schema file to be associated automatically to the file and used for validation and content completion:
scriptName -instance pathToXMLFile -schema pathToSchemaFile -schemaType XML_SCHEMA|DTD_SCHEMA|RNG_SCHEMA|RNC_SCHEMA
where scriptName is the name of the startup script for your platform (oxygen.bat on Windows, oxygen.sh on Unix/Linux, oxygenMac.sh on Mac OS), pathToXMLFile is the name of a local XML file, pathToSchemaFile is the name of the schema which you want to associate to the XML file and the four constants (XML_SCHEMA, DTD_SCHEMA, RNG_SCHEMA, RNC_SCHEMA) are the possible schema types (W3C XML Schema, DTD, Relax NG schema in full syntax, Relax NG schema in compact syntax).
The two possibilities of opening files at startup by specifying them in the command line are explained also if the startup script receives one of the -h or --help parameters.
![]() | Note |
---|---|
When more files are opened and the tabs names are on a single line, you can change the tab order by clicking and dragging a tab in the desired position. |
In addition <oXygen/> supports direct opening of files from the command prompt. Use the following command syntax:
oxygen.bat FileToOpen.xml
sh ./oxygen.sh FileToOpen.xml
sh ./oxygenMac.sh FileToOpen.xml
Also when the Tree Editor perspective is activated the current document in the Editor perspective will be opened and displayed as a tree of XML elements.